compare dates with time in javascript
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/492994/compare-dates-with-javascript">Compare dates with JavaScript</a>  </p>
</blockquote>



<p>I want to find which one is greater from 2 dates with time that is in the following format in javascript</p>

<p>date1=2-11-2012 13:40:00
date2=01-11-2012 10:40:00 </p>
