Re: List of Month Names
- To: mathgroup at smc.vnet.net
- Subject: [mg93608] Re: [mg93597] List of Month Names
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Tue, 18 Nov 2008 07:19:22 -0500 (EST)
- Reply-to: hanlonr at cox.net
Not so short: months = DateString[#, "MonthName"] & /@ Table[{2008, m}, {m, 12}] {January,February,March,April,May,June,July,August,September,October,\ November,December} shortMonths = StringTake[#, 3] & /@ months {Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec} Needs["Calendar`"] weekdays = ToString /@ Table[DayOfWeek[{2008, 11, d}], {d, 16, 22}] {Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday} shortWeekDays = StringTake[#, 3] & /@ weekdays {Sun,Mon,Tue,Wed,Thu,Fri,Sat} Bob Hanlon ---- David Park <djmpark 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 djmpark at comcast.net <http://home.comcast.net/~djmpark> http://home.comcast.net/~djmpark -- Bob Hanlon