title: JSON.net deserialize date with javascript
body: <p>When I serialize a date using Json.Net I get the date formatted as:</p>
  
  <pre><code>'2015-07-07T17:27:00.057'
  </code></pre>
  
  <p>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. </p>
  
  <p>I have tried </p>
  
  <pre><code> new Date('2015-07-07T17:27:00.057') but that gives the incorrect date
  </code></pre>
  
  <hr>
  
  <h2>Edit:</h2>
  
  <p>Found the problem. If I serialize <code>DateTime.Now</code> I get the wrong date. But if I serialize <code>DateTime.UtcNow</code> 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.</p>