how to compare two dates in jquery
<p>the 1 st one which get using the id has format </p>

<pre><code>var checkindate = $('#check-in').text();

28-07-2011
</code></pre>

<p>then i get the current date using </p>

<pre><code>var now = new Date();
</code></pre>

<p>and it has the format </p>

<pre><code>Wed Jul 20 2011 19:09:46 GMT+0530 (IST)
</code></pre>

<p>i want to get the date difference from these two dates . in this case it is 8 
. i searched a lot and could not find an answer , please help....... :'(</p>
