Template:Weekday/doc

This template computes the week day number (from 0 on monday to 6 on sunday) for the date of the gregorian calendar (or proleptic) in parameter.


 * Syntax :
 *  


 * The year must be astronomical (year=1 in 1|1 AD (Anno Domini), year=0 in 1 BC, year=-1 in 2 BC).
 * The month is between 1 and 12 from january to december.
 * The day is normally between 1 and 31.

The julian day number (which is the integer part of the julian day plus one) modulo 7 grows from 0 (on monday at noon) to 6 (on sunday at noon)) and returns back to 0 the next day on monday at noon (however this template ignores time, so this number is valid for the whole day from zero o'clock to midnight). This numbering order matches the order of days in the ISO week (but NOT the absolute numeric value, and not the US week day order and numbering).


 * Examples :
 *   returns
 *   returns
 *   returns
 *   returns
 *   returns
 *   returns
 *   returns
 *  </tt> returns
 *  </tt> returns
 *  </tt> returns
 *  </tt> returns


 * See also :
 * Template:YEARCC
 * Template:YEARYY
 * Template:CENTURY
 * Template:ISLEAPYEAR
 * Template:JULIANDAY
 * Template:ISOYEAR
 * Template:CURRENTWEEKDAY