Template:Relative date

From Wiki - Scioly.org
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.
Template documentation[view] [edit] [history] [purge]

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; 0 days ago (2024-04-20)
{{relative date|2024|04|1}} April 1, 2024; 19 days ago (2024-04-01)
{{relative date|2023|04|1}} April 1, 2023; 12 months ago (2023-04-01)