Edit this page

Use Current Culture Default Date Format as Parse Format

The default behavior of the DateTimePicker widget is to treat a value with no time part as invalid unless the corresponding format is provided in the parseFormats option.

The following example demonstrates how to add the default short date format of the current culture to the parseFormats array, so that when the time portion is removed from the DateTimePicker input, the value is still parsed as a valid date.

<script src="http://kendo.cdn.telerik.com/2016.3.1118/js/cultures/kendo.culture.bg-BG.min.js"></script>
<input id="datetimepicker" />
    parseFormats: [kendo.culture().calendar.patterns['d']],
    change: function(e){

See Also

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article