How to get the number of days between two dates?
<p>I need to calculate the number of days between 2 date. I have check the codes given this link 
<a href="http://stackoverflow.com/questions/2627473/how-to-calculate-the-number-of-days-between-two-dates-using-javascript">How to calculate the number of days between two dates using JavaScript? </a>.</p>

<p>In this example if give input  2012,02,29 and 2012,03,01 it gives output as 3. Actual answer should be 1. These there any other methods to calculate the number of days between 2 dates ?</p>
