I have a date range like 12/20/12-12/24/12(start date-end date) in string format .
I need to check if start date has past the present date. Can it be done using JS or j-query?
the date range is in string ?
I have a date range like 12/20/12-12/24/12(start date-end date) in string format . I
Share
Use the power of the
Dateobject!You could as well write
new Date(parts[0]) < new Date.