This project has moved and is read-only. For the latest updates, please go here.

DateTime Conversion Mismatch Between Javascript and

Apr 16, 2010 at 11:45 AM

I am using JsonConvert.DeserializeObject to deserialize json below:

"StartDate": new Date(
      "EndDate": new Date(

I get the following datetimes in .NET (wrong result):
StartDate: {03/05/2010 16:30:00}
EndDate: {03/05/2010 17:30:00}

Whereas in javascrtipt I get the correct result:

>>> var date = new Date(1272904200000); date
>>> var date = new Date(1272907800000); date
What am I doing wrong?