how to compare the date in xml row with today's date
<p>I have one xml file which is retrieved using jquery in sharepoint. One of the row of the xml is like below.</p>

<pre><code>&lt;z:row ows_Title='Have dinner party with Host' ows_Due_x0020_Date='2012-05-10 00:00:00' ows_MetaInfo='1;#' ows__ModerationStatus='0' ows__Level='1' ows_ID='1' ows_UniqueId='1;#{2A8F277A-C95B-420C-89A9-3B979F95C8F4}' ows_owshiddenversion='3' ows_FSObjType='1;#0' ows_Created='2012-10-25 03:19:35' ows_PermMask='0x7fffffffffffffff' ows_Modified='2012-10-29 00:56:09' ows_FileRef='1;#personal/Inclusions/Lists/Events/1_.000' /&gt;
</code></pre>

<p>Now i want to retireve the "Due Date" column and compare with the today's date. For retrieving date there is no issue. But how to compare the both dates? For comparing the date with today I used like this.</p>

<pre><code>    var k = new Date();
    var year = k.getYear();
    var month = k.getMonth();
    var day = k.getDate();
    var fulldate = year+"-"+month+"-"+day
</code></pre>

<p>But it is displaying only with date. In xml we are getting time also. I dont want to compare with time. I want to compare with only dates. How to achieve it? I want to put that whole process in the following function.</p>

<pre><code>$(xData.responseXML).find("z\\:row").each(function() { 
          //here i want to compare that date column with present date

});
</code></pre>

<p>Finally i want, the date coming in the xml is less than the today's date or not?</p>
