Wikipedia:Date math

From Wikipedia, the free encyclopedia

Date math on Wikipedia is done with variables and templates. Here is a table which begins to list them:

Built-in variables Templates based on them What you see
{{UTC}} 2006-12-14 09:50 UTC
{{CURRENTDATE}} 09:50, Thursday December 14, 2006 (UTC)
{{CURRENTMNTH}} 12
{{CURRENTMONTH}} 12
{{User:Ed Poor/last month}} November
{{User:Ed Poor/this month}} December
{{User:Ed Poor/next month}} January
{{CURRENTDOW}} 4
{{User:Ed Poor/yesterday}} Wednesday
{{User:Ed Poor/today}} Thursday
{{User:Ed Poor/tomorrow}} Friday

Any variable or template with a resolution of smaller than one day should not placed in articles. These variables only indicate when the article was parsed and cached, they may be lagged by many hours or even days compared to the time the page is viewed.

Built-in variables Templates based on them What you see
{{CURRENTTIME}} 09:50
{{Current hour}} 9
{{Current minute}} 49

[edit] Fancy stuff

Tomorrow is


See also