I have dynamic input boxes with values of dates like this
<input size="30" id="date_one" value="21/03/2011" type="text">
<input size="30" id="date_two" value="14/08/2010" type="text">
I want to calculate difference between these two dates. i.e. How many days remaining ?
I开发者_如何学Gos it possible with jQuery to do this kind of math ? & How ?
Thanks
DEMO : JQuery
DEMO : Mootools
Have a look at:
Javascript Date difference as milliseconds, minutes, hours, days, weeks, months, or years
See the demo here
精彩评论