This is a migrated thread and some comments may be shown as answers.

Don't show appointment if start/end touches 00:00

2 Answers 38 Views
Calendar - Xamarin.iOS
This is a migrated thread and some comments may be shown as answers.
Ian
Top achievements
Rank 1
Ian asked on 24 Nov 2017, 06:19 PM

If there's an appointment, for example, that's 1st Jan 00:00am- 2nd Jan 00:00am, then the calendar will show it on three days - 31st, 1st and 2nd.

Is it possible to stop it from appearing on the days where it only starts or ends?

So, an appointment would not appear on a day when it starts at 00:00pm and when it ends at 00:00am. If an appointment started and finished at 00:00am and 00:00pm, then it could default to appearing on the day it starts.

2 Answers, 1 is accepted

Sort by
0
Ian
Top achievements
Rank 1
answered on 24 Nov 2017, 06:42 PM
I achieved this by adding one minute to a start date if it starts at midnight and subtracting one minute from an end date if it touches midnight.
0
Stefan Nenchev
Telerik team
answered on 29 Nov 2017, 08:43 AM
Hello, Ian,

Indeed, the approach you have taken would be my suggestion as well. You should be able to achieve it by working with the seconds as well if you want to be more precise.

Regards,
Stefan Nenchev
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Calendar - Xamarin.iOS
Asked by
Ian
Top achievements
Rank 1
Answers by
Ian
Top achievements
Rank 1
Stefan Nenchev
Telerik team
Share this question
or