problem with new Date()
Opened this issue · 0 comments
melvintcs commented
there is some error when i signing some event from code behind.
DateTime startTime = new DateTime(2012, 11, 10, 12, 0, 0);
DateTime endTime = new DateTime(2012, 11, 10, 13, 0, 0);
the data above suppose to mark the event on 10 Nov 2012, but the calendar read as 11 Oct 2012.
But if i change the date to:
DateTime startTime = new DateTime(2012, 11, 13, 12, 0, 0);
DateTime endTime = new DateTime(2012, 11, 13 13, 0, 0);
The system read it as 13 Nov 2012 which is correct.
please guide me how to make sure the system always follow the second standard? (yyyy, mm, dd)