wimpie3 Well-Known Member Licensed User Longtime User Feb 10, 2014 #1 When I log datetime.now, the wrong day is displayed (day+1). The date/time on the mobile phone are correct and I have set datetime.settimezone to 0 to make sure the time offset is not taken into account. Any ideas on where to look?
When I log datetime.now, the wrong day is displayed (day+1). The date/time on the mobile phone are correct and I have set datetime.settimezone to 0 to make sure the time offset is not taken into account. Any ideas on where to look?
Erel B4X founder Staff member Licensed User Longtime User Feb 11, 2014 #2 You don't need to set the timezone to 0. Log(DateTime.Date(DateTime.Now)) should return the same date as configured on your device. Upvote 0
You don't need to set the timezone to 0. Log(DateTime.Date(DateTime.Now)) should return the same date as configured on your device.