Closed
Description
as of here: https://jqueryvalidation.org/dateISO-method/
both of these dates don't validate correctly, they should fail
2011-11-31
2011-02-29
normally i would use this which checks the data parsed from the input string matches the supplied date
var d = new Date(Date.parse(str))
return str === (d.getFullYear() + '-' + (d.getMonth()+1) + '-' + d.getDate());
since 2011-02-29 would parse as 2011-03-01, then this would fail properly
please advise
thanks
J