Validation

The DateTimePicker is designed to keep its input value unchanged even when the typed date is invalid.

This behavior is set because of the following reasons:

  • The DateTimePicker allows you to use different formats for date parsing which require unrestricted user input. For more information, refer to the ParseFormats option.
  • The DateTimePicker does not automatically update the typed text when the typed text is invalid. Such a change in the input value may lead to unexpected behavior.

To validate the input value of the DateTimePicker, use a client-validation framework such as the Kendo UI Validator for jQuery. In this way, you can provide an error message to end users which prompts them to do the right actions for them to resolve the issue.

See Also

In this article
Not finding the help you need? Improve this article