NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DateTime.DayOfWeek

Retrieves the day of the week represented by this instance.

[Visual Basic]
Public ReadOnly Property DayOfWeek As Integer
[C#]
public int DayOfWeek {get;}
[C++]
public: __property int get_DayOfWeek();
[JScript]
public function get DayOfWeek() : int;

Property Value

Read-only.

Remarks

The DayOfWeek property is calculated by dividing the ticks by the ticks per day and the quotient divided by seven ((ticks/ TicksPerDay +1)/ 7) and returns an 32-bit signed integer (int) value.

The return values are integers (zero through six) that indicate the day of the week (Sunday through Saturday): 0 indicates Sunday, 1 indicates Monday, 2 indicates Tuesday, 3 indicates Wednesday, 4 indicates Thursday, 5 indicates Friday, and 6 indicates Saturday.

See Also

DateTime Structure | DateTime Members | System Namespace | Ticks | TicksPerDay | Int32