Search code examples
jqueryhtmldatetimekendo-uikendo-datetimepicker

How to set default DateTime as empty in Kendo DateTime picker


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()
});

Solution

  • set defaultOption to empty or null,

     defaultOption: null
    

    Working Demo