How to accept multiple formats in KendoDatePicker?
For example, to declare multiple formats similar to this (if format were to accept an array).
this.$('#dtToDate').kendoDatePicker({
value: new Date(),
min: new Date(1950, 0, 1),
max: new Date(2049, 11, 31),
format: ["MM-dd-yyyy", "MM/dd/yyyy"]
});
In order to accept a date with format of 12-10-2013 or 12/10/2013.
What you are looking for is parseFormat. format only accepts 1 value.
parseFormat is an array that
Reference http://docs.kendoui.com/api/web/datetimepicker#configuration-parseFormats
and jsfiddle example
http://jsfiddle.net/85DUe/
the example will accept values in both the MM-dd-yyyy and MM/dd/yyyy and convert them to what is specified in format which is MM-dd-yyyy