# DateInput

## Example

```
<kendo-dateinput>
    <kendo-date-input-messages-settings />
    <label />
    <steps />
</kendo-dateinput>
```

## ChildTags

| Tag Name                           | Details                                                                                                                                                |
| ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| kendo-date-input-messages-settings | [DateInputMessagesSettingsTagHelper](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.taghelpers/dateinputmessagessettingstaghelper) |
| label                              | [DateInputLabelSettingsTagHelper](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.taghelpers/dateinputlabelsettingstaghelper)       |
| steps                              | [DateInputStepsSettingsTagHelper](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.taghelpers/dateinputstepssettingstaghelper)       |

## Attributes

| Attribute             | Type                                                                                                 | Description                                                                                                                                                                                                                                                        |
| --------------------- | ---------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| name                  | String                                                                                               | Sets the name of the component.                                                                                                                                                                                                                                    |
| as-module             | Boolean                                                                                              | Specifies whether the initialization script of the component will be rendered as a JavaScript module.                                                                                                                                                              |
| is-in-client-template | Boolean                                                                                              | When placing a Tag Helper within a Kendo Template, set the type to text/html and add the is-in-client-template="true" attribute.                                                                                                                                   |
| auto-adjust           | Boolean                                                                                              | If this property is enabled and you have configured min and/or max values, and the user enters a value that falls out of that range, the value will automatically be set to either the minimum or maximum allowed value.                                           |
| auto-correct-parts    | Boolean                                                                                              | Sets a value that indicates whether to automatically correct the segment when out of range                                                                                                                                                                         |
| auto-switch-keys      | String\[]                                                                                            | A string array representing keys that when pressed will force a move to the next segment. By default the culture specific symbols that match / and : are used.                                                                                                     |
| auto-switch-parts     | Boolean                                                                                              | A value indicating whether to automatically move to the next segment after a valid value is provided for the current                                                                                                                                               |
| enable-mouse-wheel    | Boolean                                                                                              | A value indicating whether the mouse scroll can be used to increase/decrease the segments values                                                                                                                                                                   |
| fill-mode             | [FillMode](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui/fillmode)           | Sets a value controlling how the color is applied.                                                                                                                                                                                                                 |
| deferred              | Boolean                                                                                              | Suppress initialization script rendering. Note that this options should be used in conjunction with DeferredScripts method.                                                                                                                                        |
| for                   | ModelExpression                                                                                      | An expression to be evaluated against the current model.                                                                                                                                                                                                           |
| format                | String                                                                                               | Specifies the format, which is used to format the value of the DateInput displayed in the input. The format also will be used to parse the input.                                                                                                                  |
| input-mode            | String                                                                                               | Specifies the inputmode attribute of the inner \<input /> element. It is used to specify the type of on-screen keyboard that should be displayed when the user focuses the input.                                                                                  |
| label                 | String                                                                                               | Adds a label before the dateinput. If the dateinput has no id attribute, a generated id will be assigned. The string and the function parameters are setting the inner HTML of the label.                                                                          |
| max                   | DateTime                                                                                             | Specifies the maximum date which can be entered in the input.                                                                                                                                                                                                      |
| min                   | DateTime                                                                                             | Specifies the minimum date that which be entered in the input.                                                                                                                                                                                                     |
| on-change             | String                                                                                               | The name of the JavaScript function that will handle the change event. Fires when the selected date is changed                                                                                                                                                     |
| on-kendo-keydown      | String                                                                                               | The name of the JavaScript function that will handle the kendoKeydown event. Triggered when the user presses a keyboard key while the DateInput is focused.The event handler function context (available via the this keyword) will be set to the widget instance. |
| rounded               | [Rounded](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui/rounded)             | Sets a value controlling the border radius.                                                                                                                                                                                                                        |
| script-attributes     | IDictionary\<String,Object>                                                                          | Sets the attributes that will be added to the script tag of the component's initialization script.                                                                                                                                                                 |
| size                  | [ComponentSize](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui/componentsize) | Sets the size of the component.                                                                                                                                                                                                                                    |
| two-digit-year-max    | Double                                                                                               | The maximum year value that is considered part of the current century.                                                                                                                                                                                             |
| value                 | Object                                                                                               | Specifies the selected date.                                                                                                                                                                                                                                       |
