# DateInput Integration

The DatePicker provides integration options with the [Telerik UI for ASP.NET MVC DateInput](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/editors/dateinput/overview) for the input element it renders.

To use the DateInput in a DatePicker, enable the [`DateInput`](https://www.telerik.com/aspnet-mvc/documentation/api/kendo.mvc.ui.fluent/datepickerbuilder#dateinputsystemboolean) property of the DatePicker.

```Razor HtmlHelper
    @(Html.Kendo().DatePicker()
        .Name("datepicker")
        .DateInput()
        .Value("10/10/2019")
    )
```

To customize the placeholders of the DateInput use the [`Messages`](https://www.telerik.com/aspnet-mvc/documentation/api/kendo.mvc.ui.fluent/datepickerbuilder#messagessystemaction) configuration and set the desired DateInput message. The component also provides the `Format()` option that you can leverage to set the date format, which will be used to parse and format the machine date. Defaults to `CultureInfo.DateTimeFormat.ShortDatePattern`.

## AutoFill Functionality

With the DateInput integration enabled, you can set the [`AutoFill()`](https://www.telerik.com/aspnet-mvc/documentation/api/kendo.mvc.ui.fluent/datepickerbuilder#autofill) option.

When the `AutoFill` functionality is enabled, you can complete any of the date segments in the DateInput, and when the DatePicker loses focus, the rest of the date will be filled automatically with the corresponding segment of the current date. For example, if the current date is **06 Jul 2023** and you enter only the day portion as **15** and click on another input element, the date will be autofilled to **15 Jul 2023**.

```Razor HtmlHelper
    @(Html.Kendo().DatePicker()
        .Name("datepicker")
        .DateInput()
        .AutoFill()
    )
```

## See Also

* [Basic Usage of the DatePicker HtmlHelper for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-mvc/datepicker/index)

* [Server-Side API](https://www.telerik.com/aspnet-mvc/documentation/api/datepicker)
