Message Boards Message Boards

0
|
4168 Views
|
4 Replies
|
1 Total Likes
View groups...
Share
Share this post:

DayOfWeek function in the Calendar Package

Posted 11 years ago
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?
POSTED BY: Ana Squadri
4 Replies
Posted 11 years ago
Thank you
POSTED BY: Ana Squadri
Posted 11 years ago
Thank you. The Help was teaching Calendar`instead of Needs["Calendar`"]
POSTED BY: Ana Squadri
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.
POSTED BY: David Reiss
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
POSTED BY: Ilian Gachevski
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract