DateTime Conversion Mismatch Between Javascript and Json.net

Apr 16, 2010 at 10:45 AM

I am using JsonConvert.DeserializeObject to deserialize json below:

"StartDate": new Date(
        1272904200000
      ),
      "EndDate": new Date(
        1272907800000
      ),

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?
Thanks