When I serialize a date using Json.Net I get the date formatted as:
'2015-07-07T17:27:00.057' once I receive that object from ajax it comes as a string not as a date. How can I convert '2015-07-07T17:27:00.057' to a javascript date.
I have tried
new Date('2015-07-07T17:27:00.057') but that gives the incorrect date Edit:
Found the problem. If I serialize DateTime.Now I get the wrong date. But if I serialize DateTime.UtcNow I get the correct date when deserializing. I need to save my dates in Coordinated Universal Time (UTC). The comments were the solution, thanks so much.