Template:WEEKDAYNUMBER/doc

This template returns the cyclic integer weekday number (between 0 and 6) of the date whose number is in parameter. Alternatively, the day can be given with its English weekday name (complete or abbreviated to 3 characters, with capitals or small letters).


 * Syntax :
 * day


 * The day value can be any numeric expression and is interpreted modulo 7 (extra leading zeroes and decimals are ignored), so it accepts any valid Julian day timestamp.


 * Example with a Julian day timestamp :
 * returns.


 * Note :
 * The returned value is ordered from 0 to 6 according to the ISO week (Monday to Sunday), and is consistent with date computing with Julian day, ISO week or ISO year computations. Use another template to convert it to traditional US week numbers, by adding 5, reducing the result with modulo 7 and, if needed, adding 1 to the result for a range between 1 and 7.


 * Examples for all standard English week day names :
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns


 * Examples for all abbreviated English week day names :
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns


 * Examples for all standard week day numbers :
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns


 * Examples for week day numbers with extra leading zero :
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns
 * returns


 * Examples for week day 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


 * Example for invalid week day name :
 * returns


 * See also :
 * Template:WEEKDAYNAME
 * Template:WEEKDAYABBREV, which performs the opposite operation of this template:  &rarr;
 * Template:WEEKDAY
 * Template:CURRENTWEEKDAY