Comparing Months of two Dates in javascript
<p>I want to compare months of two dates in javascript.</p>

<p>For Ex:</p>

<p>var currentDate = 05/10/2012</p>

<p>var providedDate = 02/04/2012</p>

<p>Now what i need is, I want to check whether month of providedDate is 6 months lesser than the month of currentDate.</p>

<p>Can anyone help me...???</p>
