.NET Framework Class Library  

DayOfWeek Enumeration

Specifies the day of the week.

[Visual Basic]
<Serializable>
Public Enum DayOfWeek
[C#]
[Serializable]
public enum DayOfWeek
[C++]
[Serializable]
__value public enum DayOfWeek
[JScript]
public
   Serializable
enum DayOfWeek

Remarks

The DayOfWeek enumeration represents the day of the week in calendars that have seven days per week. This enumeration ranges from zero, indicating Sunday, to six, indicating Saturday.

This enumeration is useful when it is desirable to have a strongly typed specification of the day of the week. For example, this enumeration is the type of the DateTime.DayOfWeek property.

Members

Member name Description
Friday

Supported by the .NET Compact Framework.

Indicates Friday.
Monday

Supported by the .NET Compact Framework.

Indicates Monday.
Saturday

Supported by the .NET Compact Framework.

Indicates Saturday.
Sunday

Supported by the .NET Compact Framework.

Indicates Sunday.
Thursday

Supported by the .NET Compact Framework.

Indicates Thursday.
Tuesday

Supported by the .NET Compact Framework.

Indicates Tuesday.
Wednesday

Supported by the .NET Compact Framework.

Indicates Wednesday.

Requirements

Namespace: System

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework - Windows CE .NET

Assembly: Mscorlib (in Mscorlib.dll)

See Also

System Namespace