Represents the 7 days of the Gregorian week (Sunday is 0).
assert(Date(2018, 10, 1).dayOfWeek == DayOfWeek.mon); assert(DateTime(5, 5, 5).dayOfWeek == DayOfWeek.thu);
See Implementation
Represents the 7 days of the Gregorian week (Sunday is 0).