Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Register
Advertisement

Returns information about the calendar month.

month, year, numdays, firstday = CalendarGetMonth( month[, year] )

Arguments[]

month
Number - Month index (1-12 for January-December), values outside the range are coerced into it, without adjusting the year.
year
Number - Year (e.g. 2004); if omitted, currently selected year is assumed.

Returns[]

month
Number - Month index (1-12 for January-December)
year
Number - Year at the offset date (2004+)
numdays
Number - Number of days in the month (28-31)
firstday
Number - Weekday on which the month begins (1 = Sunday, 2 = Monday, ..., 7 = Saturday)

Notes[]

  • When year is omitted, this function returns information based on the currently selected calendar month (per CalendarSetMonth/CalendarSetAbsMonth). Prior to opening the calendar for the first time in a given session, this is set to CalendarGetMinDate() (i.e. November 2004).

See also[]

Advertisement