Javascript date calculation
<p>I have date field,Onclick on date feild,i have to calculate the date with the current date .if entered date is one month older than today date.I have to popup amessage saying date is olderthan 1 month.</p>

<p>Date format is "yyyy-MM-dd".i want to compare with date "1984-03-20" to today date "2011-04-14".it should return number of months.</p>

<p>Any hints on this.
Regards,</p>

<p>Chaitu</p>
