I have a kendo date picker that is constructed as follows:
$(#date).kendoDatePicker({
format: yyyy-MM-dd,
footer: ,
parseFormats: [MM/dd/yyyy, dd/MM/yyyy]
});
I would like to use the kendo validator to validate that the date contains a valid date in the format of yyyy-MM-dd. I have tried this:
<input type=date id=date placeholder=yyyy-mm-dd name=date required data-required-msg=Please enter a date. data-date-msg=Please enter a valid date./>
While the validator does correctly validate the required condition, it does not seem to validate that the date is in the correct format or is a valid date. For instance, abc passes as a valid date as does 2013-18-85. How can I use the validator to ensure a valid date in the correct format?