How to set default DateTime as empty in Kendo DateTime picker

Abhinay picture Abhinay · May 22, 2014 · Viewed 8.4k times · Source

I am using Kendo datetime picker, as per their documentation I have set the date time as mentioned below, but by default this piece of code is setting current date and time. But I am looking for something like date time picker should be empty and user needs to be select the date and time. When I tried to remove the new Date() initialization, I was not getting date time picker at all it was just a textbox. Please anybody help in solving this issue.

$("#datetimepicker").kendoDateTimePicker({
value:new Date()
});

Answer

Milind Anantwar picture Milind Anantwar · May 22, 2014

set defaultOption to empty or null,

 defaultOption: null

Working Demo