WeekNumberRule Enum

Lists values that specify the first week of the year.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v20.2.dll

Declaration

public enum WeekNumberRule

Members

Name Description
Default

Specified by the system's CalendarWeekRule property.

FirstDay

The week that contains the first day of the year.

FirstFullWeek

The first full week.

FirstFourDayWeek

The first week that has at least four days.

Related API Members

The following properties accept/return WeekNumberRule values:

Remarks

Calendar and Date Edit display week numbers on the left side of the calendar. The WeekNumberRule property defines the first week of the year.

The example below sets the WeekNumberRule property to WeekNumberRule.FirstFullWeek.

<DxCalendar @bind-SelectedDate="@DateTimeValue" 
            WeekNumberRule="WeekNumberRule.FirstFullWeek">
</DxCalendar>

@code {
    DateTime DateTimeValue { get; set; } = new DateTime(2020,01,01);
}

Calendar - Week Number Rule

To specify the first day of a week in the calendar, use the DxCalendar.FirstDayOfWeek and DxDateEdit.FirstDayOfWeek properties.

See Also