title: Parsing a string to a date in JavaScript
body: <p>How can I convert a string to a Date object in JavaScript?</p>
  <pre class="lang-js prettyprint-override"><code>var st = &quot;date in some format&quot;
  var dt = new Date();
  
  var dt_st = // st in Date format, same as dt.
  </code></pre>