blazor-devexpress-dot-blazor-dot-dxdateedit-1-4f66948b.md
Specifies the first week of the year.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[Parameter]
public WeekNumberRule WeekNumberRule { get; set; }
| Type | Description |
|---|---|
| WeekNumberRule |
A WeekNumberRule enumeration value.
|
Available values:
| Name | Description |
|---|---|
| Default |
Specified by the system’s CalendarWeekRule property.
| | FirstDay |
The week that contains the 1st of January.
| | FirstFullWeek |
The first full week.
| | FirstFourDayWeek |
The first week that has a majority (4 or more) of its days in January.
|
Date Edit displays week numbers on the left side of the drop-down calendar. The WeekNumberRule property defines the first week of the year.
The following code snippet sets this property to WeekNumberRule.FirstFullWeek.
<DxDateEdit @bind-Date="@DateTimeValue"
WeekNumberRule="WeekNumberRule.FirstFullWeek">
</DxDateEdit>
@code {
DateTime DateTimeValue { get; set; } = new DateTime(2020,01,01);
}
See Also