Link to home
Start Free TrialLog in
Avatar of gplana
gplanaFlag for Spain

asked on

Problems with dates on Javascript

Hi.

I have a form with two dates of an interval: and initial date and a final date. I have a function that makes some calculations based of these dates.
final date should be greather than initial date, so I would like to control this: if date2 is smaller or equal to date1, I would like to set date2 to the day after date1.

How can I do this in Javascript ?

Thank you.
ASKER CERTIFIED SOLUTION
Avatar of nap0leon
nap0leon

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gplana

ASKER

Excellent ! Thank you very much.