Hi,
I want to check if date is today, then user should not be able to pick expired time. However, if the date selected is tomorrow, then any time can be selected.
I am trying to do a check in jquery, but not sure how to check. The date is in the format of "MM/DD/YYYY", and the time is in format of "hh:mm a". Expired time of 5 minutes is allowed
Below is the code which I have tried:
startDatepicker has the value as : 02/06/2017
startTimepicker, currentTime has the value as : 05:17 am
targetTime has the value as: 1486374940591
How to check if time has expired?
Thanks