O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

DayOfWeek

Synopsis

This enumeration is used by the DateTime.DayOfWeek property.

public enum DayOfWeek {
            Sunday = 0,
            Monday = 1,
            Tuesday = 2,
            Wednesday = 3,
            Thursday = 4,
            Friday = 5,
            Saturday = 6
}

Hierarchy

ObjectValueTypeEnum(IComparable, IFormattable, IConvertible)DayOfWeek

Returned By

DateTime.DayOfWeek, System.Globalization.Calendar.GetDayOfWeek(), System.Globalization.DateTimeFormatInfo.FirstDayOfWeek

Passed To

System.Globalization.Calendar.GetWeekOfYear(), System.Globalization.DateTimeFormatInfo.{FirstDayOfWeek, GetAbbreviatedDayName(), GetDayName()}

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required