title: Parsing UTC Time in JSON.net
body: <p>I have a JSON file which I have deserialized into a class I created called MyType</p>
  
  <pre><code>JsonConvert.DeserializeObject&lt;MyType&gt;(json);
  </code></pre>
  
  <p>One of the JSON properties is Time which is expressed in UTC. 
  I take this UTC Time and convert it into a DATETIME object </p>
  
  <pre><code>DateTime timestamp = DateTime.ParseExact(
      JsonTime, "o", CultureInfo.InvariantCulture, DateTimeStyles.RoundtripKind);
  </code></pre>
  
  <p>The above works fine when the UTC Time is: 2014-06-25T00:30:07.9289078+00:00</p>
  
  <p>But pukes on : 2014-06-24T00:31:08.62124+00:00</p>
  
  <p>I suspect it's most likely because of the missing trailing "0"s before the "+"</p>
  
  <p>I was playing around with JSON.net and was trying to use the Jtoken.Parse method which seems to be doing what I want. </p>
  
  <pre><code>var t = Newtonsoft.Json.Linq.JToken.Parse(
        @"{ ""x"": ""2014-06-24T00:31:08.62124+00:00"" }").Value&lt;DateTime&gt;("x");
  </code></pre>
  
  <p>How is JToken.Parse converting this UTC Time correctly and how can I use it in <code>JsonConvert.DeserializeObject&lt;MyType&gt;(json);</code> ?</p>
  
  <p>I tried to set this </p>
  
  <pre><code>public static JsonSerializerSettings JsonSerializerSettings1
  {
    get
    {
       return new JsonSerializerSettings { DateParseHandling = DateParseHandling.DateTime};
    }
  }
  .......
  return JsonConvert.DeserializeObject&lt;MyType&gt;(json, JsonSerializerSettings1);
  </code></pre>
  
  <p>It still does not convert the UTC into date time during deserialization</p>