title: JsonConvert.SerializeObject vs JsonSerializer.Serialize
body: <p>Alright I can't figure out why <code>JsonConvert.SerializeObject</code> serializes <code>DateTime</code> objects differently than JsonSerializer.Serialize. </p>
  
  <p>Given the class</p>
  
  <pre><code>public class Test
  {
       [JsonConverter(typeof(JavaScriptDateTimeConverter))]
       public DateTime DeliveryDate { get { return DateTime.Now; } }
  }
  </code></pre>
  
  <p><code>@Html.Raw(JsonConvert.SerializeObject(new Test()))</code></p>
  
  <p>outputs:</p>
  
  <pre><code>"DeliveryDate": "2013-03-01T07:00:00.000Z"
  </code></pre>
  
  <p>but when I use JsonSerializer.Serialize like in JsonNetResult:
  <a href="http://james.newtonking.com/archive/2008/10/16/asp-net-mvc-and-json-net.aspx" rel="noreferrer">http://james.newtonking.com/archive/2008/10/16/asp-net-mvc-and-json-net.aspx</a></p>
  
  <p>I get the following output:</p>
  
  <pre><code>"DeliveryDate": new Date(1362520794703)
  </code></pre>
  
  <p>I can't figure out why there is this inconsistency. I would had thought <code>JsonConvert.SerializeObject</code> would use <code>JsonSerializer</code> internally. </p>