Jump to content

Template:Age in days: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
God of War (talk | contribs)
No edit summary
God of War (talk | contribs)
No edit summary
Line 2: Line 2:
This template returns the number of days that have elapsed between two dates. If the second set of parameters is not included it will automatically calculate the days between a given date and today. To use type: '''<nowiki>{{Age in days|month1= |day1= |year1= |month2= |day2= | year2=}}</nowiki>'''
This template returns the number of days that have elapsed between two dates. If the second set of parameters is not included it will automatically calculate the days between a given date and today. To use type: '''<nowiki>{{Age in days|month1= |day1= |year1= |month2= |day2= | year2=}}</nowiki>'''
</noinclude>
</noinclude>
<includeonly>
<includeonly>{{#expr:
{{#expr:
+ {{Gregorian serial date
+ {{Gregorian serial date
|month = {{{month2|{{CURRENTMONTH}}}}}
|month = {{{month2|{{CURRENTMONTH}}}}}
Line 14: Line 13:
|year = {{{year1|{{CURRENTYEAR}}}}}
|year = {{{year1|{{CURRENTYEAR}}}}}
}}
}}
}}</includeonly>
}}
</includeonly>
<noinclude>
<noinclude>
[[Category:Date math]]
[[Category:Date math]]

Revision as of 05:03, 21 May 2006

This template returns the number of days that have elapsed between two dates. If the second set of parameters is not included it will automatically calculate the days between a given date and today. To use type: {{Age in days|month1= |day1= |year1= |month2= |day2= | year2=}}