This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

DayOfWeek

DayOfWeek[{year, month, day}]
gives the day of the week on which the given date {year, month, day} occurred.
DayOfWeek[{year, month, day, hour, minute, second}]
gives the day of the week for the given date.
  • The following options can be given:
CalendarAutomaticspecifies which calendar system to use
  • The default calendar is the usual Western (American) calendar, but can be changed with the Calendar option.
Needs["Calendar`"]
The Declaration of Independence was signed on a Thursday:
In[2]:=
Click for copyable input
Out[2]=
 
Needs["Calendar`"]
The Bastille was stormed on a Tuesday:
In[2]:=
Click for copyable input
Out[2]=
 
Needs["Calendar`"]
Canada became an independent nation on a Monday:
In[2]:=
Click for copyable input
Out[2]=
 
Needs["Calendar`"]
Wolfram Research began on a Saturday:
In[2]:=
Click for copyable input
Out[2]=
 
Needs["Calendar`"]
This gives the day of the week at the time the formula was input:
In[2]:=
Click for copyable input
Out[2]=
 
Needs["Calendar`"]
Hours, minutes, and seconds do not affect the day of the week:
In[2]:=
Click for copyable input
Out[2]=