title: Trying to parse date using new Date(). but keep getting wrong results
body: <p>I am trying to parse a date string i get from php through ajax call(which is irrelevant for now) using new Date().</p>
  
  <p>however i keep getting wrong results. </p>
  
  <p>My string is <code>2013-05-09 20:56:17</code></p>
  
  <p>When i do </p>
  
  <pre><code>var something = new Date("2013-05-09 20:56:17");
  alert(something.getMonth());
  </code></pre>
  
  <p>It keeps alerting 0</p>
  
  <p>In my opinion for some reason new date cant parse this string.</p>
  
  <p>Is there a way to specify the date format for new Date() in JS ?</p>
  
  <p>My current solution is to import php's: <code>date()</code> and <code>strtotime()</code> and use them :</p>
  
  <pre><code>alert(date('m', strtotime("2013-05-09 20:56:17")));
  </code></pre>
  
  <p>This works however I have to use external js lib and I am pretty sure there is a better JS way to achieve that.</p>