Edit

Share via


DayOfTheWeek Enum

Definition

Specifies the day of the week.

public enum class DayOfTheWeek
public enum DayOfTheWeek
Public Enum DayOfTheWeek
Inheritance
DayOfTheWeek

Fields

Name Value Description
Sunday 0

Sunday.

Monday 1

Monday.

Tuesday 2

Tuesday.

Wednesday 3

Wednesday.

Thursday 4

Thursday.

Friday 5

Friday.

Saturday 6

Saturday.

Day 7

Any day of the week.

Weekday 8

Any day of the usual business week (Monday through Friday).

WeekendDay 9

Any weekend day (Saturday or Sunday).

Remarks

The DayOfTheWeek enumeration value is the same as the T:System.DayOfWeekSunday through Saturday). These values can be safely cast between the two enumerations. The special days of the week (Day, Weekday, and WeekendDay) are used for monthly and yearly recurrences and cannot be cast to T:System.DayOfWeek

Applies to