title: Compare two date formats in javascript/jquery
body: <p>I have the following : </p>
  
  <pre><code>var fit_start_time  = $("#fit_start_time").val(); //2013-09-5
  var fit_end_time    = $("#fit_end_time").val(); //2013-09-10
  
  if(Date.parse(fit_start_time)&gt;=Date.parse(fit_end_time)){
      alert("Please select a different End Date.");
  }
  </code></pre>
  
  <p>The above code doesn't work. Is there any other solution to the above one?</p>
  
  <p>formatting date as per <a href="https://stackoverflow.com/questions/1056728/formatting-a-date-in-javascript">Where can I find documentation on formatting a date in JavaScript?</a> also dint work for me.</p>