i am entering date of birth in form by entering date in separate text box ,selecting year from drop down and entering year in text box. Now i want to check that entered date
Check if this can help:
var TodayDate = new Date(); var endDate= new Date(Date.parse($("#EndDate").val())); if (endDate> TodayDate) { // throw error here.. }
https://stackoverflow.com/a/40039798/885627