|
SOLUTIONS
|
CALENDAR PACKAGE SYMBOL
DayOfWeek
gives the day of the week on which the given date
occurred.
gives the day of the week for the given date.
DetailsDetails
- To use
, you first need to load the Calendar Package using Needs["Calendar`"]. - The following options can be given:
-
Calendar Automatic specify which calendar system to use - The default calendar is the usual Western (American) calendar, but can be changed with the Calendar option.
- Valid settings for Calendar are Automatic, Julian, Gregorian, Islamic, and Jewish.
ExamplesExamplesopen allclose all
Basic Examples (6)Basic Examples (6)
| In[1]:= |
The Declaration of Independence was signed on a Thursday:
| In[2]:= |
| Out[2]= |
| In[1]:= |
The Bastille was stormed on a Tuesday:
| In[2]:= |
| Out[2]= |
| In[1]:= |
Canada became an independent nation on a Monday:
| In[2]:= |
| Out[2]= |
| In[1]:= |
Wolfram Research began on a Saturday:
| In[2]:= |
| Out[2]= |
| In[1]:= |
This gives the day of the week at the time the formula was input:
| In[2]:= |
| Out[2]= |
| In[1]:= |
Hours, minutes, and seconds do not affect the day of the week:
| In[2]:= |
| Out[2]= |
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
