Template:Age in days: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
No edit summary
(Include milestone dates and examples)
Line 17: Line 17:
:<code><nowiki>{{age in days|12 August 2005}}</nowiki></code> returns "{{age in days|12 August 2005}}"
:<code><nowiki>{{age in days|12 August 2005}}</nowiki></code> returns "{{age in days|12 August 2005}}"
:<code><nowiki>{{age in days|2005-08-12}}</nowiki></code> returns "{{age in days|2005-08-12}}"
:<code><nowiki>{{age in days|2005-08-12}}</nowiki></code> returns "{{age in days|2005-08-12}}"
==Milestone dates==
The days since [[Mario (franchise)|''Mario'' franchise]] born (July 9, 1981; {{age in days|July 9 1981}} days)
:<s>April 4, 1984: {{age in days|July 9 1981|April 4 1984}}</s>
:<s>December 30, 1986: {{age in days|July 9 1981|December 30 1986}}</s>
:<s>September 25, 1989: {{age in days|July 9 1981|September 25 1989}}</s>
:<s>June 21, 1992: {{age in days|July 9 1981|June 21 1992}}</s>
:<s>March 18, 1995: {{age in days|July 9 1981|March 18 1995}}</s>
:<s>November 24, 2008: {{age in days|July 9 1981|November 24 2008}}</s>
:<s>August 3, 2022: {{age in days|July 9 1981|August 3 2022}}</s>
:<b>April 11, 2036: {{age in days|July 9 1981|April 11 2036}}</b>
:December 19, 2049: {{age in days|July 9 1981|December 19 2049}}
:August 28, 2063: {{age in days|July 9 1981|August 28 2063}}
:January 13, 2091: {{age in days|July 9 1981|January 13 2091}}
:June 1, 2118: {{age in days|July 9 1981|June 1 2118}}
<!--:100000: April 24, 2255
:150000: March 16, 2392
:200000: February 6, 2529
:250000: December 30, 2665
:300000: November 22, 2802
:400000: September 6, 3076
:500000: June 22, 3350
:1000000: June 6, 4719-->
==See also==
*[[Template:Age]]


[[Category:Formatting templates]]</noinclude>
[[Category:Formatting templates]]</noinclude>

Revision as of 21:30, October 24, 2024

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 "7111"

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 "7111"
{{age in days|12 August 2005}} returns "7111"
{{age in days|2005-08-12}} returns "7111"

Milestone dates

The days since Mario franchise born (July 9, 1981; 15911 days)

April 4, 1984: 1000
December 30, 1986: 2000
September 25, 1989: 3000
June 21, 1992: 4000
March 18, 1995: 5000
November 24, 2008: 10000
August 3, 2022: 15000
April 11, 2036: 20000
December 19, 2049: 25000
August 28, 2063: 30000
January 13, 2091: 40000
June 1, 2118: 50000

See also