Convert date into minutes in JavaScript
<p>I want to compare two dates as which is bigger in those dates.</p>

<pre><code>var date1 = 2011-9-2;
var date1 = 2011-17-06;
</code></pre>

<p>Can anybody say how can I do this?</p>
