I have a kendo date picker that is constructed as follows:
$(\"#date\").kendoDatePicker({
format: \"yyyy-MM-dd\",
footer: \" \",
parseFormats: [\
If you want to validate a date you need to define a rule (no built-in rule).
Try defining:
$("#date").kendoValidator({
rules: {
date: function (input) {
var d = kendo.parseDate(input.val(), "yyyy-MM-dd");
return d instanceof Date;
}
}
});
NOTE: Remember that KendoUI first uses parseFormats option for parsing the date, then converts it to the format option and finally run validations. That's why I use in validation yyyy-MM-dd and not ["MM/dd/yyyy", "dd/MM/yyyy"].