Search code examples
jqueryasp.net-mvc-3kendo-datetimepicker

how to get null date from kendo date picker in jquery mvc 3


can i get null date ? if i do not enter any date from datepicker. I want to show date control blank and if user do not enter or select any date then it return null.I am using Kendo Ui.


Solution

  • You can simply check for value of field to which you have bind the datepicker.

    If its empty then return null else return its value as date.