New to Telerik UI for Blazor? Download Free 30-day trial

DatePicker - Two-Digit Year Format


Two-digit year max

The selected date is: 7/24/2024

  • Two-digit-year-format.razor
Loading the demo source code...please wait.

Style in ThemeBuilder

  • Custom SASS variables
  • Atomic customizations
  • Sharing projects
Start Theming


The Telerik UI for Blazor DatePicker component provides handling of two-digit year formats.

When the Format parameter of the DatePicker includes a two-digit year, the value can 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 parameter. If the typed value is below or equals the TwoDigitYearMax value, the date will be assumed to be from the current century. If it's above it, the date will be assumed to be from the previous century.

This Blazor DatePicker Two-Digit Year Format example is part of a unique collection of hundreds of Blazor demos, with which you can see all Telerik UI for Blazor components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for Blazor or ThemeBuilder.

Support & Learning Resources

An error has occurred. This application may no longer respond until reloaded.