DayOfWeek

Represents the 7 days of the Gregorian week (Sunday is 0).

Values

ValueMeaning
sun0
mon
tue
wed
thu
fri
sat

Examples

assert(Date(2018, 10, 1).dayOfWeek == DayOfWeek.mon);
assert(DateTime(5, 5, 5).dayOfWeek == DayOfWeek.thu);

Meta