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!

GregorianCalendar.GetDayOfWeek

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

[Visual Basic]
Overrides Public Function GetDayOfWeek( _
   ByVal time As DateTime _
) As Integer
[C#]
public override int GetDayOfWeek(
   DateTime time
);
[C++]
public: override int GetDayOfWeek(
   DateTime time
);
[JScript]
public override function GetDayOfWeek(
   time : DateTime
) : int;

Parameters

time
The DateTime instance.

Return Value

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

Remarks

The returned value is an integer between 0 and 6, 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

GregorianCalendar Class | GregorianCalendar Members | System.Globalization Namespace