title: Convert string to date in JavaScript
body: <p>I have a string looking like so:</p>
  
  <pre><code>"2013/1/16"
  </code></pre>
  
  <p>Is there any way I could quickly convert it into date object in javascript, something like:</p>
  
  <pre><code>convertToDateTime("2013/1/16", "yyyy/MM/dd")
  </code></pre>