DateRangePicker
Picking a date range can be tough without context. A BitDateRangePicker offers a drop-down control that’s optimized for picking two dates from a calendar view where contextual information like the day of the week or fullness of the calendar is important. You can modify the calendar to provide additional context or to limit available dates.
Usage
Basic
Explore basic configurations of the BitDateRangePicker, including labels, placeholders, week numbers and highlighting features.
Selected date
November 2024
S
M
T
W
T
F
S
Selected date
November 2024
S
M
T
W
T
F
S
Selected date
November 2024
S
M
T
W
T
F
S
Selected date
November 2024
S
M
T
W
T
F
S
43
44
45
46
47
Selected date
November 2024
S
M
T
W
T
F
S
Selected date
:
:
Selected date
November 2024
S
M
T
W
T
F
S
Selected date
November 2024
S
M
T
W
T
F
S
Selected date
November 2024
S
M
T
W
T
F
S
StartingValue: December 2020
Start Time: 10:12
End Time: 16:59
Selected date
:
:
Min & Max
Set minimum and maximum selectable dates to restrict user input to a specific range of days, months, or years.
Min: Now.AddDays(-5)
Max: Now.AddDays(+5)
Selected date
November 2024
S
M
T
W
T
F
S
Min: Now.AddMonths(-2)
Max: Now.AddMonths(+1)
Selected date
November 2024
S
M
T
W
T
F
S
Min: Now.AddYears(-5)
Max: Now.AddYears(+1)
Selected date
November 2024
S
M
T
W
T
F
S
MaxRange: 2 days, 4 hours and 30 minutes
Selected date
:
:
Formatting
Applications can customize how dates are formatted and parsed. Formatted dates can be ambiguous, so the control will avoid parsing the formatted strings of dates selected using the UI when text input is allowed.
In this example, we are formatting and parsing dates as dd=MM(yy).
Selected date
November 2024
S
M
T
W
T
F
S
Selected date
November 2024
S
M
T
W
T
F
S
Binding
Bind a selected date to a model or view, allowing two-way data binding with the BitDateRangePicker.
Selected date Start: 01/17/2020 - End: 01/25/2020
January 2020
S
M
T
W
T
F
S
From: 01/17/2020 00:00:00 +00:00
To: 01/25/2020 00:00:00 +00:00
Culture
By default, BitDateRangePicker picks the current culture.
But you can provide your own instance of CultureInfo for any custom culture.
You also can use our CultureInfoHelper class or check its code to see how to create a custom culture.
You also can use our CultureInfoHelper class or check its code to see how to create a custom culture.
Selected date
آذر 1403
ش
ی
د
س
چ
پ
ج
Selected date
Azar 1403
S
Y
D
S
C
P
J
Templates
Utilize various templates within the BitDateRangePicker, such as custom label templates, day cell templates, and year cell templates.
Selected date
November 2024
S
M
T
W
T
F
S
Selected date
November 2024
S
M
T
W
T
F
S
Selected date
November 2024
S
M
T
W
T
F
S
Selected date
November 2024
S
M
T
W
T
F
S
Responsive
Enable responsive design for the BitDateRangePicker, allowing it to adjust its layout and appearance based on the screen size.
Selected date
November 2024
S
M
T
W
T
F
S
43
44
45
46
47
Hour/Minute step
Adjust the increment step for hours and minutes when using the BitDateRangePicker's time selection feature.
Selected date
:
:
Selected date
:
:
Standalone
Use the BitDateRangePicker in a standalone mode, allowing it to function independently without a surrounding form or container.
Selected date
November 2024
S
M
T
W
T
F
S
Selected date
November 2024
S
M
T
W
T
F
S
Selected date
November 2024
S
M
T
W
T
F
S
43
44
45
46
47
Selected date
November 2024
S
M
T
W
T
F
S
Selected date
S
M
T
W
T
F
S
:
:
Style & Class
Explore styling and class customization for BitDateRangePicker, including component styles, custom classes, and detailed styles.
Component's Style & Class:
Selected date
November 2024
S
M
T
W
T
F
S
Selected date
November 2024
S
M
T
W
T
F
S
Styles & Classes:
Selected date
:
:
Selected date
November 2024
S
M
T
W
T
F
S
RTL
Use BitDateRangePicker in right-to-left (RTL).
Selected date
November 2024
S
M
T
W
T
F
S
API
BitDateRangePicker parameters
Name |
Type |
Default value |
Description |
---|---|---|---|
BitInputBase parameters
Name |
Type |
Default value |
Description |
---|---|---|---|
BitInputBase public members
Name |
Type |
Default value |
Description |
---|---|---|---|
BitComponentBase parameters
Name |
Type |
Default value |
Description |
---|---|---|---|
BitComponentBase public members
Name |
Type |
Default value |
Description |
---|---|---|---|
BitDateRangePickerValue properties
Name |
Type |
Default value |
Description |
---|---|---|---|
BitDateRangePickerClassStyles properties
Name |
Type |
Default value |
Description |
---|---|---|---|
BitIconLocation enum
Name |
Value |
Description |
---|---|---|
BitTimeFormat enum
Name |
Value |
Description |
---|---|---|
BitVisibility enum
Name |
Value |
Description |
---|---|---|
BitDir enum
Name |
Value |
Description |
---|---|---|
- On this page