MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: List of Month Names


Hi David

days = Table[DateString[{1900, 1, x}, {"DayName"}], {x, 1, 7}]
months = Table[DateString[{1900, x, 1}, {"MonthName"}], {x, 1, 12}]

Gives the following output:

{"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", \
"Sunday"}

{"January", "February", "March", "April", "May", "June", "July", \
"August", "September", "October", "November", "December"}

Cheers,
Mike
www.walkingrandomly.com

How about this?

On 17 Nov, 11:17, "David Park" <djmp... at comcast.net> wrote:
> 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
>
> djmp... at comcast.net
>
>  <http://home.comcast.net/~djmpark>http://home.comcast.net/~djmpark



  • Prev by Date: Re: List of Month Names
  • Next by Date: Re: List of Month Names
  • Previous by thread: Re: List of Month Names
  • Next by thread: Re: List of Month Names