title: Javascript date parse error
body: <p>I'm trying to convert string into epoch time in milliseconds using specs found on:</p>
  
  <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse" rel="nofollow">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse</a></p>
  
  <p>For some reason the following snippet of codes returns March 13 instead of Feb 24, 2014.  </p>
  
  <p><strong>Snippet 1:</strong></p>
  
  <pre><code>alert(Date(Date.parse("2014-02-24T09:49:22.000-0800")));
  </code></pre>
  
  <p><strong>Output:</strong> Thu Mar 13 2014 21:51:41 GMT-0700 (Pacific Daylight Time) </p>
  
  <p><strong>Snippet 2:</strong></p>
  
  <pre><code>alert(Date(Date.parse("2014-02-24")));
  </code></pre>
  
  <p><strong>Output:</strong> Thu Mar 13 2014 21:51:41 GMT-0700 (Pacific Daylight Time) </p>
  
  <p>Is this some sort of timezone issue or what is the mistake that i have done ?</p>