New to Telerik UI for ASP.NET Core? Download free 30-day trial

Formats

The TimePicker allows you to define its time formatting.

The following example demonstrates how to define the time format.

    @(Html.Kendo().TimePicker()
        .Name("TimePicker")
        .Value(DateTime.Now)
        .Format("{0:hh:mm:ss tt}")
    )
<kendo-timepicker name="TimePicker"
                  value="DateTime.Now"
                  format="{0:hh:mm:ss tt}"/>

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

    @(Html.Kendo().TimePicker()
        .Name("TimePicker")
        .Value(DateTime.Now)
        .Interval(15)
    )
<kendo-timepicker name="TimePicker"
                  value="DateTime.Now"
                  interval="15"/>

See Also

In this article