Template:MONTH/doc

This template returns the cyclic integer month number in ISO format (between 01 and 12) of the month whose real number is in parameter. Alternatively, the month can be given with its English name (complete or abbreviated to 3 characters, with capitals or small letters).

Syntax

 * month


 * The month value is interpreted modulo 12 (extra leading zeroes are ignored, negative numbers are accepted, all numbers are rounded to floor).

Examples for all standard month numbers

 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns

Examples for month numbers with extra leading zero

 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns

Examples for month number underflows and overflows, from computed values

 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns

Example for invalid month name

 * returns