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.
[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
- {{age}} — Age in years
- {{age in days}} — Age in days
- {{age in years and days}} — Age in years and days
- {{date}} — Today's date