Template:Relative date

From Wiki - Scioly.org
Jump to: navigation, search
Template documentation[view] [edit] [history] [purge]

The Relative date template is a template for giving the amount of time before or after a date.


|1= - the year of the date
|2= - the month of the date
|3= - the day of the date


Code Result
{{relative date|2021|05|5}} May 5, 2021; 0 days ago (2021-Error: Invalid time.-05)
{{relative date|2021|05|1}} May 1, 2021; 4 days ago (2021-Error: Invalid time.-01)
{{relative date|2020|05|1}} May 1, 2020; 12 months ago (2020-Error: Invalid time.-01)