Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Age: Difference between revisions

Template page
More languages
Alvine (talk | contribs)
m Added french interwiki link.
No edit summary
Line 8: Line 8:


;Examples
;Examples
*<nowiki>{{age|1989|7|23|2003|7|14}}</nowiki> gives {{age|1989|7|23|2003|7|14}}
*<nowiki>{{age|1988|7|23|2003|7|14}}</nowiki> gives {{age|1988|7|23|2003|7|14}}
*<nowiki>{{age|1989|7|23}}</nowiki> gives {{age|1989|7|23}}
*<nowiki>{{age|1988|7|23}}</nowiki> gives {{age|1988|7|23}}


[[Category:Mathematical templates|{{PAGENAME}}]]
[[Category:Mathematical templates|{{PAGENAME}}]]

Revision as of 03:31, 11 July 2014

Documentation

This template returns the number of full years between two dates, or between a specified date and today (UTC).

Syntax
{{Age|year1|month1|day1|year2|month2|day2}}
{{Age|year1|month1|day1}}
Examples
  • {{age|1988|7|23|2003|7|14}} gives 14
  • {{age|1988|7|23}} gives 36