Jump to content

Template:Relative date/doc

From Wiki - Scioly.org
Revision as of 05:09, 7 January 2021 by Pepperonipi (talk | contribs) (Created page with "The '''Relative date''' template is a template for giving the amount of time before or after a date. == Syntax == :{{para|1}} - the year of the date :{{para|2}} - the month o...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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)