New to Kendo UI for jQuery? Start a free 30-day trial

Set DateInput Messages of DateTimePicker

Updated on Sep 8, 2026

Environment

ProductProgress® Kendo UI® DateTimePicker for jQuery
Product Version2019.1.220

Description

How can I configure the messages of the date input in the Kendo UI DateTimePicker?

Solution

  1. Reference the date input by using the setOptions method of the DateTimePicker.
  2. Change its messages.
Example
View Source
    <input id="datetimepicker" title="datetimepicker" style="width: 100%;" />

    <script>
      $(document).ready(function () {
        $("#datetimepicker").kendoDateTimePicker({
          dateInput: true
        });

        var datetimepicker = $("#datetimepicker").data("kendoDateTimePicker");
        datetimepicker._dateInput.setOptions({
          messages:{
            "year": "yyyy",
            "month": "mm",
            "day": "dd",
            "hour": "hh",
            "minute": "mm",
            "second": "ss",
            "dayperiod": "am/pm",
          }
        });
      });
    </script>

See Also