Template:Age in days

From the Super Mario Wiki, the Mario encyclopedia
Revision as of 05:49, October 25, 2024 by Mario jc (talk | contribs) (Undo revision 4409623 by Windy (talk) There already is an example.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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

Usage

{{age in days|date1}}
{{age in days|date1|date2}}

{{age in days|November 23, 1990|August 12, 2005}} returns "5376"

{{age in days|August 12, 2005}} returns "7034"

Date formatting

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

{{age in days|August 12 2005}} returns "7034"
{{age in days|12 August 2005}} returns "7034"
{{age in days|2005-08-12}} returns "7034"

See also