Template:Age in years and months/doc

From Wikipedia, the free encyclopedia

The content of this template is only visible when the template is transcluded.

This is a documentation subpage for Template:Age in years and months (see that page for the template itself).
It contains usage information, categories and other content that is not part of the original template page.

[edit] Usage

This template returns the number of full years and remaining days between two specified dates. If the second set of parameters is not included, it will return the number of full years and remaining months between a specified date and today's date.

Syntax:
{{age in years and months|year1|month1|day1|year2|month2|day2}} or
{{age in years and months|year1|month1|day1}}
Examples:
{{age in years and months|1989|7|23|2003|7|14}} returns "13 years"
{{age in years and months|1989|7|23}} returns "18 years, 10 months"

[edit] See also