Blazor DateInput - Overview

My Profile

Date of Birth Month, Day, Year
  • Overview.razor
  • MyProfileTemplate.razor
Loading the demo source code...please wait.
blazor ui ninja image

The DateInput component is part of Telerik UI for Blazor, a professional grade UI library with 110+ native components for building modern and feature-rich applications. To try it out sign up for a free 30-day trial.

Description

The Telerik UI for Blazor DateInput component enables you to enter date/time via direct input. It provides separate sections for day, month, year, hours and minutes. Furthermore, you can control the date and time format by using standard format strings.

To use the Telerik Date Input component in Blazor applications, you simply need to add the <TelerikDateInput> tag in your razor page and bind the control to a DateTime object. The current demo shows a primary example of using the Blazor DateInput component by selecting a travel date, which is then displayed as text. In the demo configurator, you can adjust the debounce delay property of the UI component, which allows control over the time delay and response to the change of the date values.

The DateInput for Blazor can increase/decrease the values for each segment of the date (year, month, day) with a different step when the Up or Down arrows are pressed. Additionally, you can provide configuration options for id, value, custom format, minimum and maximum values, tab index, placeholder, disabling the component and event that will trigger validation.

The Telerik UI for Blazor DateInput comes with built-in ability to react to the chosen culture where format strings are involved, so same Format may render different things depending on the user culture.

The DateInput also exposes multiple events, such as OnChange, ValueChanged and OnBlur, that enable easy handling of logic related to user interactions with the component.

This DateInput Overview 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

Additional Resources

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