TKClalendar, incorrect date selection

5 posts, 0 answers
  1. Deepak
    Deepak avatar
    19 posts
    Member since:
    Nov 2016

    Posted 09 Aug Link to this post

     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.
  2. Deepak
    Deepak avatar
    19 posts
    Member since:
    Nov 2016

    Posted 09 Aug in reply to Deepak Link to this post

     

    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

  3. Mark
    Mark avatar
    1 posts
    Member since:
    Aug 2012

    Posted 10 Aug Link to this post

    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

  4. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    503 posts

    Posted 11 Aug Link to this post

    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
  5. Deepak
    Deepak avatar
    19 posts
    Member since:
    Nov 2016

    Posted 11 Aug Link to this post

    Hi,

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

Back to Top