Re: List of Month Names
- To: mathgroup at smc.vnet.net
- Subject: [mg93613] Re: List of Month Names
- From: "Hans Michel" <hmichel at cox.net>
- Date: Tue, 18 Nov 2008 07:20:16 -0500 (EST)
- References: <gfrjs6$llf$1@smc.vnet.net>
If you want days of the week without typing each individualy
Needs["Calendar`"]
Table[DayOfWeek[DatePlus[DateList[], i]], {i, 0, 6}]
If you don't want to depend on Calendar Package then use
Table[DateString[DatePlus[DateList[], {i, "Day"}], "DayName"], {i, 0, 6}]
This should give you an order list of day name based on the day you run it.
As for Month Name
Table[DateString[DatePlus[DateList[], {i, "Month"}], "MonthName"], {i, 0,
11}]
Short Month Name
Table[DateString[DatePlus[DateList[], {i, "Month"}], "MonthNameShort"], {i,
0,
11}]
Hans
"David Park" <djmpark at comcast.net> wrote in message
news:gfrjs6$llf$1 at smc.vnet.net...
> Is there a short Mathematica command to obtain a list of month names or
> short month names in order, without having to type them all in by hand?
> And
> same question for days of the week.
>
> Thanks in advance.
>
> David Park
>
> djmpark at comcast.net
>
> <http://home.comcast.net/~djmpark> http://home.comcast.net/~djmpark
>
>
>