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

Day cell's date incorrect

1 Answer 54 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 19 Oct 2017, 05:39 PM

I have a cell that's Date property is claiming that {2017-10-15 23:00:00 +0000} is the 16th of October. It's close!

Is this something to do with time zones?

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 24 Oct 2017, 10:32 AM
Hello, Ian,

Indeed the offset you're observing is caused by the device timezone.

If you need the actual Date displayed in the Cell you can convert the cell date to local time. I'm providing a simple code snippet that should do the trick:

var localDate = ((System.DateTime) cell.Date).ToLocalTime();


I hope this information helps.

Regards,
Nikolay
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
Nikolay
Telerik team
Share this question
or