title: JavaScript AM/PM time comparison
body: <p>Suppose I have 2 datetime variables:</p>
  
  <pre><code>var fromdt = "2013/05/29 12:30 PM";
  var todt = "2013/05/29 01:30 AM";
  </code></pre>
  
  <p>I want to compare these 2 datetimes. How can I get Javascript to recognize whether the time is AM or PM?</p>
  
  <p>I think Javascript will compare the time in 24 hours format. Do I need to convert the time to 24 hour format? Is that correct? Could someone please suggest the correct solution....</p>