Template:TODAY/doc
Appearance
| This is a documentation subpage for Template:TODAY. It may contain usage information, categories and other content that is not part of the original template page. |
| This template may be substituted by using {{subst:TODAY}}. |
{{TODAY}} returns the current date, in UTC time, as typical dmy format.
Please be sure to study Help:Substitution § Limitation before using this template in references or VisualEditor.
Note that the same date can be shown for up to a week on a page since Wikipedia caches pages and only re-renders them under one of the follow circumstances:
- Someone visits the page and it has not been re-rendered in a week;
- Someone visits the page and manually purges or edits it.
Usage
[edit]Syntax
[edit]{{TODAY}}or{{tdy}}{{subst:TODAY}}or{{subst:tdy}}for a substituted date.
Implementation
[edit]{{TODAY}} expands to:
{{safesubst:#time:j F Y}}
produces: 7 August 2026
Today's day month year, in that order (DMY) with the month written out.
See also
[edit]- Help:Time function, about using the #time parser function
Multiple units of time
[edit]| Type | Adjustable | Current | Last | Next |
|---|---|---|---|---|
| Date and time |
|
|
||
| Date only | ||||
| Month and year only |
|
| ||
| Time only |
|
|
||
| Banners |
|
|||
| 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]- mw:Special:MyLanguage/time permits a custom time specifier string, similar to the C date and time functions
Individual templates
[edit]- {{Calendar}}
- {{Calendar clock with Wikipedia stats}}
- {{Clock}}
- {{Digital clock}}
- {{Digital clock and date}}
- {{Infobox calendar date today}}