# Formats

You can control the format of the DateInput by using the [`format`](https://www.telerik.com/kendo-react-ui/components/dateinputs/api/dateinputprops#format) property, which accepts string parameters.

By default, the `format` property is set to `'d'`. For more information on the date and number formats KendoReact supports, refer to the [kendo-intl](https://github.com/telerik/kendo-intl#date-formatting) GitHub repository.

[Demo Source](https://demos.telerik.com/kendo-react-ui/dateinputs/dateinput/formats/func/source.txt)

# Two-Digit Year Format

When the [`format`](https://www.telerik.com/kendo-react-ui/components/dateinputs/api/dateinputprops#format) includes a two-digit year, the value will automatically be normalized to the current or previous century.

Whether the value will be assumed to be from the current or previous century is controlled by the [`twoDigitYearMax`](https://www.telerik.com/kendo-react-ui/components/dateinputs/api/dateinputprops#twoDigitYearMax) property. If the typed value is less than or equal to the [`twoDigitYearMax`](https://www.telerik.com/kendo-react-ui/components/dateinputs/api/dateinputprops#twoDigitYearMax) value, the date will be assumed to be from the current century. If it's more than it, the date will be assumed to be from the previous century.

By default, the [`twoDigitYearMax`](https://www.telerik.com/kendo-react-ui/components/dateinputs/api/dateinputprops#twoDigitYearMax) is set to 68.

[Demo Source](https://demos.telerik.com/kendo-react-ui/dateinputs/dateinput/two-digit-year/func/source.txt)

## Suggested Links

* [Learn about KendoReact Free.](https://www.telerik.com/kendo-react-ui/components/getting-started/free-vs-premium)
* [API Reference of the DateInput](https://www.telerik.com/kendo-react-ui/components/dateinputs/api/dateinputprops)
* [React Date Inputs](https://www.telerik.com/kendo-react-ui/components/dateinputs)
