Calendar
DayOfWeek
compute the day of the week of a given date
Calling Sequence
Parameters
Description
Examples
Compatibility
DayOfWeek( d )
DayOfWeek( year, month, day )
d
-
Date ; the date whose day of the week is to be computed
year
integer; the year
month
posint; the month of the year
day
posint; the day of the month
The DayOfWeek( d ) command computes the day of the week of the Date object d.
The DayOfWeek( year, month, day ) command computes the day of the week for the day-th day of the month month (1..12) in the year year.
Weekdays are numbered from 1 to 7, with 1 denoting "Sunday", 2 denoting "Monday", and so on, through 7 which denotes "Saturday".
with⁡Calendar:
DayOfWeek⁡Date⁡
6
DayOfWeek⁡2000,1,1
7
DayOfWeek⁡2000,12,31
1
DayOfWeek⁡Date⁡1900,12,31
2
Maryam Mirzakhani was born on a Tuesday.
DayOfWeek⁡Date⁡1977,5,3,timezone=Asia/Tehran
3
The battle of Hastings occurred on a Saturday.
DayOfWeek⁡1066,10,14
William the Conqueror was crowned on a Monday.
DayOfWeek⁡1066,12,25
The Calendar[DayOfWeek] command was introduced in Maple 2018.
For more information on Maple 2018 changes, see Updates in Maple 2018.
See Also
Download Help Document