Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a2212c2fed9ac526

Jump to content

Template:Weekday/doc

From Wikipedia, the free encyclopedia

This template computes the ISO week date day number (from 1 on Monday to 7 on Sunday) for the date of the Gregorian calendar (or proleptic) in parameter.

Usage

[edit]

Syntax

[edit]
{{WEEKDAY|year|month|day}}
  • The year must be astronomical (year=1 in 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 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

[edit]
  • {{WEEKDAY|-4799|3|1}} returns 4 (proleptic) (in year 4800 BC), first Gregorian date where the result is warrantied to be correct by {{JULIANDAY}}
  • {{WEEKDAY|-4799|3|2}} returns 5 (proleptic) (in year 4800 BC), tests the 1 day increment
  • {{WEEKDAY|-4713|11|24}} returns 1 (proleptic) (in year 4714 BC)
  • {{WEEKDAY|2000|2|28}} returns 1
  • {{WEEKDAY|2000|3|1}} returns 3
  • {{WEEKDAY|2000|12|31}} returns 7
  • {{WEEKDAY|2001|1|1}} returns 1
  • {{WEEKDAY|2001|2|28}} returns 3
  • {{WEEKDAY|2001|3|1}} returns 4
  • {{WEEKDAY|2001|12|31}} returns 1
  • {{WEEKDAY|2006|2|28}} returns 2
  • {{WEEKDAY|2006|3|1}} returns 3
  • {{WEEKDAY|2006|4|22}} returns 6
  • {{WEEKDAY|2026|7|28}} returns 2

See also

[edit]

Multiple units of time

[edit]
Type Adjustable Current Last Next
Date and time
Date only
Month and year only
Time only
  • {{Timeonly}} (Adjustable to 12 h format)
Banners
  • {{Right now}}
    (Blue with time and number of Wikipedia articles)
Timestamp

Single units of time

[edit]
Unit of time Adjustable Current Last Next
Second
Minute
Hour
Week
Day of Week
Month
Day of Month
Year
Day of Year
Decade
Century
Millenium

Date and time templates made for substitution

[edit]

Parser functions

[edit]

Individual templates

[edit]

Categories of templates

[edit]