title: javascript Date.parse 0000-00-00 00:00 AM format results in NaN
body: <p>I am trying to parse a date string to javascript timestamp, the format of the string is <code>2013-01-01 12:00 AM</code> but when I attempt to alert the output all I can get is <code>NaN</code> My attempt is:</p>
  
  <pre><code>var ts_begin = Date.parse($('#fromdate').val()+' '+$('#fromtime').val());
  alert(ts_begin);
  </code></pre>