Link to home
Start Free TrialLog in
Avatar of Sathish David  Kumar N
Sathish David Kumar NFlag for India

asked on

How to Compare two date in java script

Hi ,

How to compare 2 different date in java script .

the date formate is dd-MMM-yyyy HH:mm (eg: 26-May-1983 05:30)

Avatar of Akenathon
Akenathon
Flag of Uruguay image

You can directly compare Date datatype expressions in Javascript, see at the bottom of this page:

http://www.w3schools.com/js/js_obj_date.asp

To create Date datatype variables from your strings, see at the top of the same page.
Avatar of Sathish David  Kumar N

ASKER

i am not able to create date var in javascript with this parameter dd-MMM-yyyy HH:mm
ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

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