title: How to convert new Date(year, month, day) overload with JSON.Net
body: <p>I'm trying to parse JSON file where dates are defined as <a href="http://www.w3schools.com/js/js_dates.asp" rel="nofollow">JavaScript objects</a> :</p>
  
  <pre><code>new Date(year, month[, day[, hour[, minutes[, seconds[, milliseconds]]]]]);
  </code></pre>
  
  <p>so I did try to parse it with the <a href="http://www.newtonsoft.com/json/help/html/T_Newtonsoft_Json_Converters_JavaScriptDateTimeConverter.htm" rel="nofollow">JavaScriptDateTimeConverter</a> </p>
  
  <p>test.json:</p>
  
  <pre><code>{"data" : [{"Date" : new Date(2015, 06, 01, 00, 00, 00)}]}
  </code></pre>
  
  <p>c#:</p>
  
  <pre><code>using (StreamReader file = File.OpenText(@"c:\test.json"))
  {
    JsonSerializer serializer = new JsonSerializer();
    serializer.Converters.Add(new JavaScriptDateTimeConverter());
    Rootobject deserializedRoot = (Rootobject)serializer.Deserialize(file, typeof(Rootobject));
  }
  </code></pre>
  
  <p>Unfortunatly I'm receiving this error :</p>
  
  <blockquote>
    <p>Unexpected token parsing date. Expected EndConstructor, got Integer. Path 'data[0].Date<a href="http://www.w3schools.com/js/js_dates.asp" rel="nofollow">1</a>', line 13, position 30.</p>
  </blockquote>
  
  <p>From my understanding JSON.Net expect at best a <code>new Date(52231943)</code> but doesn't  handle constructor overloads of Javascript Date() object.</p>
  
  <p>Is there any known way to convert the <code>new Date(year, month, day)</code>?</p>