Template:Age in days: Difference between revisions
From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{# | <includeonly>{{#expr: abs({{#time: U|{{{2|{{#time: F j, Y}}}}}}} - {{#time: U|{{{1|{{#time: F j, Y}}}}}}}) div 86400}}</includeonly><noinclude> | ||
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. | 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. | ||
Line 8: | Line 8: | ||
</pre> | </pre> | ||
<code><nowiki>{{age in days|August 12, 2005}}</nowiki></code> returns " | <code><nowiki>{{age in days|August 12, 2005}}</nowiki></code> returns "{{age in days|August 12, 2005}}" | ||
[[Category:Formatting templates]]</noinclude> | [[Category:Formatting templates]]</noinclude> |
Revision as of 06:57, July 14, 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|August 12, 2005}}
returns "7158"