Template:Relative date
Jump to navigation
Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
The Relative date template is a template for giving the amount of time before or after a date.
Syntax
|1=
- the year of the date|2=
- the month of the date|3=
- the day of the date
Examples
Code | Result |
---|---|
{{relative date|2024|04|20}}
|
April 20, 2024 |
{{relative date|2024|04|1}}
|
April 1, 2024 |
{{relative date|2023|04|1}}
|
April 1, 2023 |
The above documentation is transcluded from Template:Relative date/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |