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



<p>I haven't done much JavaScript. I am trying to compare two dates. From jconsole:</p>

<pre><code>a = ["01/01/2010","01/02/2010","01/03/2010"]

date1 = new Date('01/02/2010')
Sat Jan 02 2010 00:00:00 GMT-0800 (PST)

date2 = new Date(a[1])
Sat Jan 02 2010 00:00:00 GMT-0800 (PST)

date1 == date2
false
</code></pre>

<p>Can someone tell me why this does not match?</p>
