title: JSON parse DateTime
body: <p>From the server I get this string</p>
  
  <pre><code>[{\"id\":\"9b77ff1e-350e-44d8-8860-15e80f4d8a22\",\"code\":\"C\",\"name\":\"0%\",\"validFrom\":\"2013-07-01T00:00:00Z\",\"validTill\":null,\"active\":1,\"vatProc\":0.0,\"createdAt\":\"2015-02-01T13:04:17.733Z\",\"updatedAt\":\"2015-02-01T13:04:17.733Z\"}]
  </code></pre>
  
  <p>On the client side I then convert it to a json object using JSON.parse which produces the result:</p>
  
  <pre><code>[
  {
  active:1
  code:"C"
  createdAt:"2015-02-01T13:04:17.733Z"
  id:"9b77ff1e-350e-44d8-8860-15e80f4d8a22"
  name:"0%"
  updatedAt:"2015-02-01T13:04:17.733Z"
  validFrom:"2013-07-01T00:00:00Z"
  validTill:null
  vatProc:0
  }
  ]
  </code></pre>
  
  <p>Which is as you would expect if it where not for the date fields.</p>
  
  <p>The dates are on server translated to UTC.</p>
  
  <p>I know I can pass a function to parse the function to do the conversion.
  I would just like to format the date's so that the regular parse would do it "right" if you know what I mean</p>
  
  <p>I saw on the net that there is no "right" way and that every case what I was reading about on the net is working with conversion on the client side.</p>
  
  <p>So is there really no way to tell the regular json parser that that is a date?</p>
  
  <p>I have the option to convert that date-time to what ever would work on the server</p>
  
  <p><strong>ClientSide:</strong> AngularJS</p>
  
  <p><strong>ServerSide:</strong> C# WCF / json</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>The problem that I am having is that if I use for instance the <code>ValidFrom</code> as a model in AngularJS it is complaining that it is not a date witch it really is not</p>
  
  <p>AngularJS error:</p>
  
  <pre><code>Expected `2013-07-01T00:00:00Z` to be a date
  </code></pre>