Jump to content

Template:Relative date

From Wiki - Scioly.org
Revision as of 03:27, 5 January 2021 by Pepperonipi (talk | contribs) (Template taken from Template:Start date and age on the English Wikipedia, history and further attribution can be found there. (https://en.wikipedia.org/wiki/Template:Start_date_and_age))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation

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|2026|01|25}} January 25, 2026; 0 days ago (2026-01-25)
{{relative date|2026|01|1}} January 1, 2026; 24 days ago (2026-01-01)
{{relative date|2025|01|1}} January 1, 2025; 12 months ago (2025-01-01)