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!

Calendar.GetDayOfWeek

Returns the day-of-week part of the specified DateTime.

[Visual Basic]
MustOverride Public Function GetDayOfWeek( _
   ByVal time As DateTime _
) As Integer
[C#]
public abstract int GetDayOfWeek(
   DateTime time
);
[C++]
public: virtual int GetDayOfWeek(
   DateTime time
) = 0;
[JScript]
public abstract function GetDayOfWeek(
   time : DateTime
) : int;

Parameters

time
The DateTime instance.

Return Value

The 0-based day-of-week part of the time.

Remarks

The returned value is an integer between 0 and 6[RB14], where 0 indicates Sunday, 1 indicates Monday, 2 indicates Tuesday, 3 indicates Wednesday, 4 indicates Thursday, 5 indicates Friday, and 6 indicates Saturday.

See Also

Calendar Class | Calendar Members | System.Globalization Namespace