Best way to create a Date Object with this string in JS
<p>I'm receiving this date/time from an API:</p>

<p><code>2012-03-31 12:00:00</code></p>

<p>What is the best way to do this:</p>

<p><code>var date = new Date("2012-03-31 12:00:00")</code> without Firefox complaining of an Invalid Date?</p>
