New to Telerik UI for ASP.NET CoreStart a free 30-day trial

Date and Time Formatting

Updated on Dec 10, 2025

The DateTimePicker allows you to define its date and time formatting.

The following example demonstrates how to define the date-time format.

Razor
    @(Html.Kendo().DateTimePicker()
        .Name("dateTimePicker")
        .Value(DateTime.Now)
        .Format("{0:dd/MM/yyyy hh:mm tt}")
    )

The following example demonstrates how to define the time format.

Razor
    @(Html.Kendo().DateTimePicker()
        .Name("dateTimePicker")
        .Value(DateTime.Now)
        .TimeFormat("hh:mm:ss tt") // This format will be used to format the predefined values in the time list.
    )

The following example demonstrates how to define the interval (in minutes) between values in the drop-down list with time slots.

Razor
    @(Html.Kendo().DateTimePicker()
        .Name("dateTimePicker")
        .Value(DateTime.Now)
        .Interval(15)
    )

See Also

In this article
See Also
Not finding the help you need?
Contact Support