I can not create a function like DayOfWeek because Mathematica v9.0 dos not install the Calendar Package when I enter Calendar`. It says that there is not enough instruction. What is happening? Anybody could help me?
With version 9, you may want to use the built-in function DayName instead of DayOfWeek. The old Calendar` package still works
In[1]:= DayName[{2013, 9, 19}]
Out[1]= Thursday
In[2]:= Needs["Calendar`"]
DayOfWeek[{2013, 9, 19}]
Out[3]= Thursday
Thank you. The Help was teaching Calendar`instead of Needs[“Calendar`”]
Note that the help for the Calendar` package loads the package using the command
<< Calendar`
In this command the << is a shorthand for the function Get .
?Get
<<name reads in a file, evaluating each expression in it and returning the last one.
Get reads from a stream, evaluating each expression in it and returning the last one.
Thank you