title: JavaScript Date Object Comparison
body: <p>When comparing date objects in Javascript I found that even comparing the same date does not return true.</p>
  
  <pre><code> var startDate1 = new Date("02/10/2012");
   var startDate2 = new Date("01/10/2012");
   var startDate3 = new Date("01/10/2012");
   alert(startDate1&gt;startDate2); // true
   alert(startDate2==startDate3); //false
  </code></pre>
  
  <p>How could I compare the equality of these dates? I am interested in utilizing the native <code>Date</code> object of JS and not any third party libraries since its not appropriate to use a third party JS just to compare the dates.</p>