I have a DatePicker that displays the date nicely in the correct format i.e. "2016-05-26" for May 26, 2016.
var date1 = kendo.toString($("#RelevantDate").data("kendoDatePicker").value(), 'd');
var date2 = $("#RelevantDate").data("kendoDatePicker").value();
both the date1 and the date2 variable are null if I have a date like "160531". With a nicely formatted date everything works.
Is there any way to get a badly formatted date out of the datepicker? I want the users to be able to select the date in the picker and to enter the date manually so changing to a textbox input is not an option.