jquery-week-calendar icon indicating copy to clipboard operation
jquery-week-calendar copied to clipboard

problem with new Date()

Open melvintcs opened this issue 13 years ago • 0 comments

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)

melvintcs avatar Oct 09 '12 07:10 melvintcs