title: convert string into datetime format in Javascript
body: <p>i have a string which, i want to compare with a javascript datetime object.
  how to convert string "1/1/1912" into datetime using JavaScript so that i can compare like</p>
  
  <pre><code>if (EDateTime &gt; ('1/1/1912'))  {...}
  </code></pre>