11 overrides of GetDayOfWeek
System.Private.CoreLib (11)
src\libraries\System.Private.CoreLib\src\System\Globalization\EastAsianLunisolarCalendar.cs (1)
575public override DayOfWeek GetDayOfWeek(DateTime time)
src\libraries\System.Private.CoreLib\src\System\Globalization\GregorianCalendar.cs (1)
199public override DayOfWeek GetDayOfWeek(DateTime time) => time.DayOfWeek;
src\libraries\System.Private.CoreLib\src\System\Globalization\HebrewCalendar.cs (1)
610public override DayOfWeek GetDayOfWeek(DateTime time)
src\libraries\System.Private.CoreLib\src\System\Globalization\HijriCalendar.cs (1)
314public override DayOfWeek GetDayOfWeek(DateTime time) => time.DayOfWeek;
src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseCalendar.cs (1)
128public override DayOfWeek GetDayOfWeek(DateTime time)
src\libraries\System.Private.CoreLib\src\System\Globalization\JulianCalendar.cs (1)
227public override DayOfWeek GetDayOfWeek(DateTime time) => time.DayOfWeek;
src\libraries\System.Private.CoreLib\src\System\Globalization\KoreanCalendar.cs (1)
85public override DayOfWeek GetDayOfWeek(DateTime time)
src\libraries\System.Private.CoreLib\src\System\Globalization\PersianCalendar.cs (1)
263public override DayOfWeek GetDayOfWeek(DateTime time) => time.DayOfWeek;
src\libraries\System.Private.CoreLib\src\System\Globalization\TaiwanCalendar.cs (1)
85public override DayOfWeek GetDayOfWeek(DateTime time)
src\libraries\System.Private.CoreLib\src\System\Globalization\ThaiBuddhistCalendar.cs (1)
66public override DayOfWeek GetDayOfWeek(DateTime time)
src\libraries\System.Private.CoreLib\src\System\Globalization\UmAlQuraCalendar.cs (1)
462public override DayOfWeek GetDayOfWeek(DateTime time) => time.DayOfWeek;
9 references to GetDayOfWeek
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
FormatWeekHelper.cs (1)
22var day = calendar.GetDayOfWeek(date);
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\DateAndTime.vb (1)
503iDayOfWeek = CurrentCalendar.GetDayOfWeek(DateValue) + 1 ' System.DateTime uses Sunday = 0 thru Satuday = 6
PresentationFramework (1)
System\Windows\Controls\Primitives\CalendarItem.cs (1)
1369DayOfWeek day = _calendar.GetDayOfWeek(firstOfMonth);
System.Private.CoreLib (6)
src\libraries\System.Private.CoreLib\src\System\Globalization\Calendar.cs (3)
367int dayForJan1 = (int)GetDayOfWeek(time) - (dayOfYear % 7); 405dayForJan1 = (int)GetDayOfWeek(time) - (dayOfYear % 7); 440int dayOfWeekOfFirstOfYear = (int)GetDayOfWeek(MinSupportedDateTime) - dayOfYear % 7;
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (1)
567int dayOfWeek = (int)cal.GetDayOfWeek(dateTime);
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (2)
2714if (raw.dayOfWeek != (int)result.calendar.GetDayOfWeek(time)) 4778if (parseInfo.dayOfWeek != (int)parseInfo.calendar.GetDayOfWeek(result.parsedDate))