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

TKClalendar, incorrect date selection

4 Answers 62 Views
Calendar - Xamarin.iOS
This is a migrated thread and some comments may be shown as answers.
Deepak
Top achievements
Rank 1
Deepak asked on 09 Aug 2017, 05:34 AM
 Whenever I select the date from the calendar, DidSelectDate method of TKCalendarDelegate returns incorrect date i.e. if I select 24th Aug. it gives me 23rd Aug in NSDate.

4 Answers, 1 is accepted

Sort by
0
Deepak
Top achievements
Rank 1
answered on 09 Aug 2017, 10:01 AM

 

Some more information about the issue:

1). I added a day (new TimeSpan(24,0,0,)) to fix the initial problem and then it's working properly but

2). when selecting any date >= October the 30th the date given back is in-correct

0
Mark
Top achievements
Rank 1
answered on 10 Aug 2017, 01:30 PM

Just in case anyone else runs into this problem. The problem can be fixed by doing your own conversion of NSDate to Datetime.

see here for more details
https://forums.xamarin.com/discussion/27184/convert-nsdate-to-datetime

0
Stefan Nenchev
Telerik team
answered on 11 Aug 2017, 10:27 AM
Hi,

Indeed, Mark's suggestion should help in this scenario. Deepak, can you confirm whether it works for you as well?

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
0
Deepak
Top achievements
Rank 1
answered on 11 Aug 2017, 10:49 AM

Hi,

Yes it's working for me... @Mark Thanks for your help 

Tags
Calendar - Xamarin.iOS
Asked by
Deepak
Top achievements
Rank 1
Answers by
Deepak
Top achievements
Rank 1
Mark
Top achievements
Rank 1
Stefan Nenchev
Telerik team
Share this question
or