title: JavaScript won't parse GMT Date/Time Format
body: <p>I'm trying to get JavaScript to parse a date and time format for me, with the eventual aim of telling me the days passed since that date and the time right now (locally). </p>
  
  <p>Unfortunately, the date format I have to work with (it's from a JSON response which I don't have control over) is returning it in 2008-10-01 06:21:43 type format.</p>
  
  <pre><code>var thedate = "2008-10-01 06:21:43";
  var inmillisecs = new Date(thedate);
  </code></pre>
  
  <p>This just returns an error from JavaScript telling me the date is invalid.</p>
  
  <p>How do I get around this issue?</p>