Comparing dates created with timestamp Date.UTC
<p>I have this code:</p>

<pre><code>var d1 = new Date(Date.UTC(2011, 0, 1));
var d2 = new Date(Date.UTC(2011, 0, 1));

if (d1 == d2) { alert('Equals1'); }
if (d1 === d2) { alert('Equals2'); }
if (d1 &lt; d2)  { alert('d1 &lt; d2'); }
if (d1 &gt; d2)  { alert('d1 &gt; d2'); }
</code></pre>

<p>Could someone tell me WHY I can't comparing these two dates? You can run the script here: <a href="http://jsfiddle.net/vSL47/" rel="nofollow">http://jsfiddle.net/vSL47/</a></p>

<p>These two dates should be equals, no?</p>

<p>Thanks</p>
