Template:MONTHNAME/doc

This template returns the name of the month whose number is in parameter. Alternatively, the English month name or abbreviation (with any letter case) can be given.

Syntax

 *  month


 * The month value is interpreted modulo 12 (extra leading zeroes and decimals are ignored).

Compatibility synonym

 *  

Examples for all standard month numbers

 *  1  returns 1
 *  2  returns 2
 *  3  returns 3
 *  4  returns 4
 *  5  returns 5
 *  6 </tt> returns 6
 *  7 </tt> returns 7
 *  8 </tt> returns 8
 *  9 </tt> returns 9
 *  10 </tt> returns 10
 *  11 </tt> returns 11
 *  12 </tt> returns 12

Examples for month numbers with extra leading zero

 *  01 </tt> returns 01
 *  02 </tt> returns 02
 *  03 </tt> returns 03
 *  04 </tt> returns 04
 *  05 </tt> returns 05
 *  06 </tt> returns 06
 *  07 </tt> returns 07
 *  08 </tt> returns 08
 *  09 </tt> returns 09

Examples for month number cyclic underflows and overflows, from computed values

 * <tt> -12 </tt> returns -12
 * <tt> -11 </tt> returns -11
 * <tt> -10 </tt> returns -10
 * <tt> -9 </tt> returns -9
 * <tt> -3 </tt> returns -3
 * <tt> -2 </tt> returns -2
 * <tt> -1 </tt> returns -1
 * <tt> 0 </tt> returns 0
 * <tt> 13 </tt> returns 13
 * <tt> 14 </tt> returns 14
 * <tt> 15 </tt> returns 15
 * <tt> 16 </tt> returns 16
 * <tt> 23 </tt> returns 23
 * <tt> 24 </tt> returns 24
 * <tt> 25 </tt> returns 25
 * <tt> 1200 </tt> returns 1200
 * <tt> 1201 </tt> returns 1201
 * <tt> 1212 </tt> returns 1212

Examples for all standard English month names

 * <tt> JANUARY </tt> returns JANUARY
 * <tt> FEBRUARY </tt> returns FEBRUARY
 * <tt> MARCH </tt> returns MARCH
 * <tt> APRIL </tt> returns APRIL
 * <tt> MAY </tt> returns MAY
 * <tt> JUNE </tt> returns JUNE
 * <tt> JULY </tt> returns JULY
 * <tt> AUGUST </tt> returns AUGUST
 * <tt> SEPTEMBER </tt> returns SEPTEMBER
 * <tt> OCTOBER </tt> returns OCTOBER
 * <tt> NOVEMBER </tt> returns NOVEMBER
 * <tt> DECEMBER </tt> returns DECEMBER

Examples for all abbreviated English month names

 * <tt> jan </tt> returns jan
 * <tt> feb </tt> returns feb
 * <tt> mar </tt> returns mar
 * <tt> apr </tt> returns apr
 * <tt> may </tt> returns may
 * <tt> jun </tt> returns jun
 * <tt> jul </tt> returns jul
 * <tt> aug </tt> returns aug
 * <tt> sep </tt> returns sep
 * <tt> oct </tt> returns oct
 * <tt> nov </tt> returns nov
 * <tt> dec </tt> returns dec