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 :
 *  


 * 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
 *  </tt> returns


 * Examples for all abbreviated English week day names :
 *  </tt> returns
 *  </tt> returns
 *  </tt> returns
 *  </tt> returns
 *  </tt> returns
 *  </tt> returns
 *  </tt> returns


 * Examples for all standard week day numbers :
 *  </tt> returns
 *  </tt> returns
 *  </tt> returns
 *  </tt> returns
 *  </tt> returns
 *  </tt> returns
 *  </tt> returns


 * Examples for week day numbers with extra leading zero :
 *  </tt> returns
 * <tt> </tt> returns
 * <tt> </tt> returns
 * <tt> </tt> returns
 * <tt> </tt> returns
 * <tt> </tt> returns
 * <tt> </tt> returns


 * Examples for week day number underflows and overflows, from computed values :
 * <tt> </tt> returns
 * <tt> </tt> returns
 * <tt> </tt> returns
 * <tt> </tt> returns
 * <tt> </tt> returns
 * <tt> </tt> returns
 * <tt> </tt> returns
 * <tt> </tt> returns
 * <tt> </tt> returns
 * <tt> </tt> returns
 * <tt> </tt> returns
 * <tt> </tt> returns
 * <tt> </tt> returns
 * <tt> </tt> returns
 * <tt> </tt> returns
 * <tt> </tt> returns
 * <tt> </tt> returns
 * <tt> </tt> returns
 * <tt> </tt> returns
 * <tt> </tt> returns
 * <tt> </tt> returns
 * <tt> </tt> returns
 * <tt> </tt> returns
 * <tt> </tt> returns
 * <tt> </tt> returns
 * <tt> </tt> returns


 * Example for invalid week day name :
 * <tt> </tt> returns


 * See also :
 * Template:WEEKDAYNAME
 * Template:WEEKDAYABBREV
 * Template:WEEKDAY
 * Template:CURRENTWEEKDAY