In JavaScript, when do/don't Dates get converted?
<p>I'm confused because typing the same date in a different format results in two different date outputs, the first converted and the second, not. Here is the code: </p>

<pre><code>var x = new Date("2015-03-25"); // outputs Tue Mar 24 2015 17:00:00 GMT-0700 (PDT)
var y = new Date("03/25/2015"); // outputs Wed Mar 25 2015 00:00:00 GMT-0700 (PDT)
</code></pre>