Hi,
I am trying to set a default value of today in my datetimepicker. However, it will not allow me to change the date time format from "Tue Feb 3 13:54:54 EST 2015" format which I an unable to convert in the c# code. Here is my javascript code:
var startDateString = '';
$("#start-date-datepickerId").kendoDateTimePicker({
value: new Date(),
change:
function () {
startDateString = kendo.toString(
this.value());
},
format: "0:MM/dd/yyyy"
});
if (startDateString == '')
startDateString = kendo.parseDate($("#start-date-datepickerId").data("kendoDateTimePicker").value());
Any and all help is appreciated