Comparing dates only by year, month and date?
<p>Say we have 2 Date objects in Javascript;</p>

<pre><code>var d1 = new Date('...');
var d2 = new Date('...');
</code></pre>

<p>We do a comparison:</p>

<pre><code>d1 &lt; d2;
</code></pre>

<p>This comparison will always take into account hours, minutes, seconds.</p>

<p>I want it to only take into account the year, month and date for comparison.</p>

<p>What's the easiest way to do this?</p>

<p>jQuery is allowed aswell.</p>
