I am trying to set the time of a date picker to 1 hour later but keep getting an error, (only when adding hour)
I keep getting an error here in kendo.all.js line 1477
if (value && value.indexOf("/D") === 0) {
Where value is a number, and does not support indexOf
Thanks
Date.prototype.addHours =
function
(h) {
this
.setTime(
this
.getTime() + (h * 60 * 60 * 1000));
return
this
;
}
var
d =
new
Date(e.event.start)
d.addHours(1)
$(
"#endx"
).kendoDateTimePicker({
value: d
});
I keep getting an error here in kendo.all.js line 1477
if (value && value.indexOf("/D") === 0) {
Where value is a number, and does not support indexOf
Thanks