Blazor Calendar Example - Week Number
The following example demonstrates the week number and different types of week rules functionalities of the Calendar.
January 2025
| S | M | T | W | T | F | S | |
|---|---|---|---|---|---|---|---|
| 1 | 29 | 30 | 31 | 1 | 2 | 3 | 4 |
| 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 3 | 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 4 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 5 | 26 | 27 | 28 | 29 | 30 | 31 | 1 |
Selected date is: 1/1/2025
Properties
Calendar has the WeekNumber and WeekRule properties that provide an option to specify the rule for defining the first week of the year (FirstDay, FirstFullWeek, and FirstFourDayWeek).
See also