# ASP.NET Core TimeDurationPicker Overview

The Telerik UI TimeDurationPicker TagHelper and HtmlHelper for ASP.NET Core are server-side wrappers for the Kendo UI TimeDurationPicker widget.

The TimeDurationPicker component enables the end user to select a time range stored in milliseconds.

* [Demo page for the TimeDurationPicker](https://demos.telerik.com/aspnet-core/timedurationpicker/index)

## Initializing the TimeDurationPicker

The following example demonstrates how to define the TimeDurationPicker.

```Razor HtmlHelper
        @(Html.Kendo().TimeDurationPicker()
			.Name("timeDurationPicker")
        )
```

```Razor TagHelper
            <kendo-timedurationpicker name="timedurationpicker"></kendo-timedurationpicker>
```

> Starting with the 2024 Q3 release, the HtmlHelper version of the component supports [declarative initialization](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/helper-basics/declarative-initialization).

## Basic Configuration

To configure the TimeDurationPicker, pass the configuration options as attributes of the helper.

```Razor HtmlHelper
        @(Html.Kendo().TimeDurationPicker()
			.Name("timeDurationPicker")
			.Columns(c =>
			{
				c.Hours().Format("## hours ").Min(8).Max(11);
				c.Minutes().Format(" ## minutes ").Min(15).Max(45).Step(5);
				c.Seconds().Format(" ## seconds").Min(10).Max(50).Step(10);
			})
			.Separator(":")
        )
```

```Razor TagHelper
        <kendo-timedurationpicker name="timedurationpicker" separator=":">
            <timedurationpicker-columns>
                <timedurationpicker-column name="hours" format="## hours "></timedurationpicker-column>
                <timedurationpicker-column name="minutes" format=" ## minutes"></timedurationpicker-column>
                <timedurationpicker-column name="seconds" format=" ## seconds"></timedurationpicker-column>
            </timedurationpicker-columns>
        </kendo-timedurationpicker>
```

## Functionality and Features

* [Columns](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/timedurationpicker/columns)—The TimeDurationPicker allows you to configure the columns displayed in the popup and apply formatting to the input value.
* [Shortcuts](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/timedurationpicker/shortcuts)—You can add TimeDurationPicker buttons that hold certain time frame values.
* [Appearance](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/timedurationpicker/appearance)—You can use various built-in styling options that control the appearance of the TimeDurationPicker.
* [Adaptiveness](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/timedurationpicker/adaptive-mode)—The TimeDurationPicker supports adaptive mode that provides mobile-friendly rendering by automatically adjusting its popup layout based on screen size.
* [Model Binding](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/timedurationpicker/model-binding)—Bind the TimeDurationPicker to a model field of type `decimal?` and configure the input mode and columns.
* [Events](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/timedurationpicker/events)—Handling the events of the TimeDurationPicker allows you to implement custom functionality.
* [Accessibility](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/timedurationpicker/accessibility/overview)—The TimeDurationPicker is accessible by screen readers and provides WAI-ARIA, Section 508, WCAG 2.2, and [keyboard support](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/timedurationpicker/accessibility/keyboard-navigation).

## Next Steps

* [Getting Started with the TimeDurationPicker](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/timedurationpicker/getting-started)

* [Basic Usage of the TimeDurationPicker for ASP.NET Core (Demo)](https://demos.telerik.com/aspnet-core/timedurationpicker)

* [TimeDurationPicker in Razor Pages](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/timedurationpicker/razor-page)

## See Also

* [Configuring the TimeDurationPicker Columns](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/editors/timedurationpicker/columns)
* [Using the API of the TimeDurationPicker for ASP.NET Core (Demo)](https://demos.telerik.com/aspnet-core/timedurationpicker/api)
* [Knowledge Base Section](https://www.telerik.com/aspnet-core-ui/documentation/knowledge-base)
