weekday

.weekday()

Returns the current day of the week, as a number. This is a value from 0 to 6, starting at Sunday.

Sunday is 0, Monday is 1, Tuesday is 2, and all the way up till Saturday which will return 6.

See also

day - weekdayName