Calendar
The calendar control lets people select and view a single date or a range of dates in their calendar. It’s made up of 3 separate views: the month view, year view, and decade view.
Usage
Basic
Show code
Basic Calendar configuration showcasing default usage, disabled state, week numbers, highlighted months, and time picker.
Basic Calendar:
Selected date
October 2024
S
M
T
W
T
F
S
Disabled:
Selected date
October 2024
S
M
T
W
T
F
S
Week numbers:
Selected date
October 2024
S
M
T
W
T
F
S
39
40
41
42
43
Highlight months:
Selected date
October 2024
S
M
T
W
T
F
S
StartingValue: December 2020, Time: 20:45:
Selected date
S
M
T
W
T
F
S
:
Min & Max
Show code
Demonstrates setting minimum and maximum selectable dates in the calendar.
Min: Now.AddDays(-5)
Max: Now.AddDays(+5)
Selected date
October 2024
S
M
T
W
T
F
S
Min: Now.AddMonths(-2)
Max: Now.AddMonths(+1)
Selected date
October 2024
S
M
T
W
T
F
S
Min: Now.AddYears(-5)
Max: Now.AddYears(+1)
Selected date
October 2024
S
M
T
W
T
F
S
Style & Class
Show code
Showcases custom styling and class usage for the calendar component.
Component's Style & Class:
Selected date
October 2024
S
M
T
W
T
F
S
Selected date
October 2024
S
M
T
W
T
F
S
Styles & Classes:
Selected date
S
M
T
W
T
F
S
:
Selected date
October 2024
S
M
T
W
T
F
S
Binding
Show code
Illustrates binding the selected date value to a variable.
Selected date 08/19/2023
August 2023
S
M
T
W
T
F
S
Selected date: 08/19/2023 00:00:00 +00:00
Culture
Show code
By default, BitCalendar 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.
fa-IR culture with Farsi names:
Selected date
آبان 1403
ش
ی
د
س
چ
پ
ج
fa-IR culture with Fingilish names:
Selected date
Aban 1403
S
Y
D
S
C
P
J
Templates
Show code
Use custom templates for day cells, month cells, and year cells.
DayCellTemplate:
Selected date
October 2024
S
M
T
W
T
F
S
MonthCellTemplate:
Selected date
October 2024
S
M
T
W
T
F
S
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
YearCellTemplate:
Selected date
October 2024
S
M
T
W
T
F
S
MonthPicker
Show code
Demonstrates controlling the visibility and position of the month picker.
IsMonthPickerVisible:
Selected date
October 2024
S
M
T
W
T
F
S
ShowMonthPickerAsOverlay:
Selected date
October 2024
S
M
T
W
T
F
S
TimePicker
Show code
Demonstrates the time picker functionality integrated within the calendar component.
Selected date 10/22/2024
S
M
T
W
T
F
S
:
Selected DateTime: 10/22/2024 00:52:32 +00:00
Hour/Minute step
Show code
Customizes the step increments for hours and minutes in the time picker.
HourStep = 2:
Selected date
S
M
T
W
T
F
S
:
MinuteStep = 15:
Selected date
S
M
T
W
T
F
S
:
Validation
Show code
Demonstrates validation for BitCalendar within a form, including required fields and custom validation messages.
RTL
Show code
Use BitCalendar in right-to-left (RTL).
Selected date
October 2024
S
M
T
W
T
F
S
API
BitCalendar 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 |
---|---|---|---|
BitCalendarClassStyles properties
Name |
Type |
Default value |
Description |
---|---|---|---|
BitVisibility enum
Name |
Value |
Description |
---|---|---|
BitTimeFormat enum
Name |
Value |
Description |
---|---|---|
BitVisibility enum
Name |
Value |
Description |
---|---|---|
BitDir enum
Name |
Value |
Description |
---|---|---|
- On this page