Overview
The Blazor DateRangePicker is a lightweight and mobile-friendly component that allows end users to select start and end dates as a range from a calendar pop-up or by entering the value directly in an HTML input text box.
Why choose Syncfusion Essential Studio® Blazor DateRangePicker?
Customizable date formats
The Blazor DateRangePicker component’s input value can be customized in addition to the default culture-specific date format.
Preset range
Define preset ranges (like last 30 days or last week) to set date ranges frequently used by the end users.
Adapts to any resolution
The Date Range Picker has a highly responsive layout and an optimized design for desktops, touch screens, and smart phones. It works well on all mobile phones that use iOS, Android, or Windows OS.
Specific date restrictions
Restricts dates outside the min and max date ranges, allowing only valid dates to be entered. Users cannot enter or choose restricted dates.
Attractive customizable themes
Cutting edge design with 5+ built-in themes such as Fluent, Tailwind CSS, Bootstrap, Material, Fabric, and more. Utilize the online Theme Studio tool to customize themes of Date Range Picker easily.
Globalization and localization
Enables users from different locales to use the DateRangePicker by formatting dates, currency, and numbering to suit preferences.
Blazor DateRangePicker Code Example
Easily get started with the Blazor DateRangePicker using a few simple lines of C# code example as demonstrated below, Also explore our Blazor DateRangePicker Example that shows you how to render the DateRangePicker component in Blazor.
@using Syncfusion.Blazor.Calendars
<SfDateRangePicker TValue="DateTime?" Placeholder="Choose a Range" Min="@MinDate" Max="@MaxDate"/>
@code {
public DateTime MinDate {get;set;} = new DateTime(2017, 01, 05);
public DateTime MaxDate {get;set;} = new DateTime(2017, 12, 20);
}DateRangePicker with multiple language
Globalization translates the names of months, days, and the today button text to any supported language. The date format and first day of the week are set to specific cultures.


Date selection within a range
Enter or select a value within a specific range of dates by defining the min and max properties.
Date-range validation
The Blazor Date Range Picker allows display of date ranges. When the date value is out of this range, validation error is triggered. The invalid and out-of-date-range values are set in a disabled state to prevent users from entering them or selecting them.


Customize DateRangePicker
The appearance of the component can be completely changed. Customize the application’s look and feel according to the requirement.

Accessibility

Keyboard navigation
The Blazor DateRangePicker component ensures that every cell is accessible using the keyboard. Major features like sort, select, and edit can be performed using keyboard commands alone; no mouse interaction is required. This helps in creating highly accessible applications using this component.

Screen reader
The Blazor DateRangePicker view has complete WAI-ARIA accessibility support. The DateRangePicker UI includes high-contrast visual elements that help visually impaired people to have the best viewing experience. Also, valid UI descriptions are easily accessible through assistive technologies such as screen readers.

Right to left (RTL)
Right-to-left rendering allows displaying the text and layout of the DateRangePicker from right to left. This improves the user experience and accessibility for RTL languages.
Other supported frameworks
The DateRangePicker is available for the React, Angular, JavaScript, and Vue frameworks. Explore its platform-specific options through the following links:
Supported browsers
The Blazor DateRangePicker works well with all modern web browsers, including Chrome, Firefox, Edge, Safari, and Opera.

