Template:Age in days

From the Super Mario Wiki, the Mario encyclopedia
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