Template:Age/doc

From Rhythm Heaven Wiki
< Template:Age
Revision as of 21:59, 31 August 2025 by The Eggo55 (talk | contribs) (super mario wiki attribution)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This template returns the number of full years between two specified dates. If the second parameter is not included, it will return the number of full years between a specified date and today's date.

Usage

{{age|date1}}
{{age|date1|date2}}
  • {{age|August 3, 1990}} → "35"
  • {{age|August 3, 1990|June 11, 2006}} → "15"

Date formatting

The full range of possible date formats is based on php's strtotime() function, but for simplicity it's usually best to just stick to the format above.

  • {{age|August 3 1990}} → "35"
  • {{age|3 August 1990}} → "35"
  • {{age|1990-08-03}} → "35"

Attribution

Epilogue Wii Cheer Readers 2 HI.png