I have got a Date returned from an Api as a Json object which looks like this: Date(1371510000000) When I open internet Explorer and paste the following in the url: javascript:alert(Date(1371510000000)) I get an alert reading the date 19 June 2013 (which is correct).
However when I deserialize this date in .NET using NewtonSoft's Json deserializer as shown below:
var x = Newtonsoft.Json.JsonConvert.DeserializeObject<DateTime>("\"/Date(1371510000000)/\"");
It parses the date as 17 June 2013 (which is incorrect).
Is there anything that I am doing incorrectly ?
Thanks.