How to validate a date is in the format yyyy-MM-dd using kendo validator?
问题 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