title: Regarding JavaScript new Date() and Date.parse()
body: <pre class="lang-js prettyprint-override"><code>var exampleDate='23-12-2010 23:12:00';  
  </code></pre>
  <p>I want to convert above string into a <code>date</code> and have tried a couple things:</p>
  <pre class="lang-js prettyprint-override"><code>var date = new Date(exampleDate); //returns invalid Date
  var date1 = Date.parse(exampleDate); //returns NAN
  </code></pre>
  <p>This code is running fine in <code>IE</code> and <code>Opera</code>, but <code>date</code>  is returning me an invalid <code>Date</code> and <code>date1</code> is returning <code>NAN</code> in Firefox. What should I do?</p>