# Set DateInput Messages of DateTimePicker

## Environment

<table>
 <tr>
  <td>Product</td>
  <td>Progress® Kendo UI® DateTimePicker for jQuery</td>
 </tr>

  <td>Product Version</td>
  <td>2019.1.220</td>
 </tr>
</table>

## 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](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/datetimepicker/methods/setoptions).
2. Change its [`messages`](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/dateinput/configuration/messages).

```dojo
    <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

* [setOptions - Documentation and API Reference ](https://docs.telerik.com/kendo-ui/api/ui/datetimepicker/methods/setoptions)
* [messages - Documentation and API Reference ](https://docs.telerik.com/kendo-ui/api/ui/dateinput/configuration/messages)
