# DateInput Integration

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

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

```Razor HtmlHelper
    @(Html.Kendo().DateTimePicker()
        .Name("dateTimePicker")
        .DateInput(true)
    )
```

To customize the placeholders of the DateInput use the [`Messages`](https://www.telerik.com/aspnet-mvc/documentation/api/kendo.mvc.ui.fluent/datepickerbasemessagessettingsbuilder) configuration and set the desired DateInput messages.

## AutoFill functionality

With the DateInput integration enabled, you the AutoFill functionality can also be enabled via the [`autoFill`](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/editors/datetimepicker/integration/api/javascript/ui/datepicker/configuration/autofill) configuration option.

```Razor HtmlHelper
    @(Html.Kendo().DateTimePicker()
        .Name("dateTimePicker")
        .DateInput(true)
        .AutoFill(true)
    )
```

When the AutoFill functionality is enabled you can complete any of the date segments in the DatePicker's DateInput and when the component looses focus the rest of the date will automatically be filled with the corresponding segment of the current date. For example, if the current date is 06 Jul 2023 and the user fills only the day portion as 15 and clicks on another input element the date will be autofilled to 15 Jul 2023.

## See Also

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