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;
Returns the 0-based day-of-week part of the specified DateTime.
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.
GregorianCalendar Class | GregorianCalendar Members | System.Globalization Namespace