title: JavaScript date() Object returns NaN with getYear (and other)
body: <p>I am currently having some issues converting a string dateTime object in JavaScript</p>
  
  <p>I am assuming it is because my string cannot me used properly in a <code>new Date()</code> but I'm not sure that is the problem.</p>
  
  <p>My Input: "2011-09-29 14:58:12" </p>
  
  <p>My code:</p>
  
  <pre><code>var date = "2011-09-29 14:58:12";
  var added = new Date(date);
  var year = added.getYear();
  </code></pre>
  
  <p>However, my <code>year</code> var contains NaN. Same with getDay() or getMonth(). What is the problem?</p>
  
  <p>ps: I'm getting the date in it's format from a SQLite database. And I'm using Titanium Mobile, so javascript and SQLite are the only things involved</p>