Share via


DayOfWeek Enumeration

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Specifies the day of the week.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
<SerializableAttribute> _
Public Enumeration DayOfWeek
[SerializableAttribute]
public enum DayOfWeek
[SerializableAttribute]
public enum class DayOfWeek
[<SerializableAttribute>]
type DayOfWeek
public enum DayOfWeek

Members

Member name Description
Sunday Indicates Sunday.
Monday Indicates Monday.
Tuesday Indicates Tuesday.
Wednesday Indicates Wednesday.
Thursday Indicates Thursday.
Friday Indicates Friday.
Saturday Indicates Saturday.

Remarks

The DayOfWeek enumeration represents the day of the week in calendars that have seven days per week. The value of the constants in this enumeration ranges from DayOfWeek..::..Sunday to DayOfWeek..::..Saturday. If cast to an integer, its value ranges from zero (which indicates DayOfWeek..::..Sunday) to six (which indicates DayOfWeek..::..Saturday).

See Also

Reference

System Namespace