0

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 ?

Is it possible with jQuery to do this kind of math ? & How ?

Thanks

DEMO : JQuery

DEMO : Mootools

MANnDAaR
  • 2,546
  • 7
  • 45
  • 64
  • 3
    Please do not tag this as Java - Javascript != Java. Also, jQuery isn't needed for this - it is a cross-browser library commonly used for DOM traversal, manipulation and ajax requests, not math. – Yi Jiang Aug 14 '10 at 07:36
  • 2
    With JQuery: http://stackoverflow.com/questions/542938/how-do-i-get-the-number-of-days-between-two-dates-in-jquery – KeatsPeeks Aug 14 '10 at 07:37

1 Answers1