Usage
This template returns the number of days 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=}}
Or with unnamed parameters:
- {{age in days|year1|month1|day1|year2|month2|day2}} or
- {{age in days|year1|month1|day1}}
Examples:
- {{age in days|2007|5|24|2008|4|23}} gives 335
- {{age in days|2007|5|24}} gives 5477
See also
Birth, death and age templates |
---|
Birth, death, age |
---|
Template | Description / use
| {{BirthDeathAge}} | Combines functions of {{birth date}}, {{birth-date}}, {{birth date and age}}, {{birth year and age}}, {{death date}}, {{death-date}}, {{death date and age}} and {death year and age}}.
| {{birth date}} | To display a birth date and related hidden metadata.
| {{birth-date}} |
| {{birth date and age}} | {{birth date}} with suffix "(age N)".
| {{birth date and age2}} | {{birth date and age}} plus age as of a specified date.
| {{birth-date and age}} | As {{birth date and age}} but accepts dates in text form ("15 June 1950", "June 15, 1950", "June 1950", etc).
| {{birth year and age}} | Year of birth and approximate age.
| {{birth year from age at date}} | To display approximate birth year and current age given a particular date (e.g. when a dated reference mentions the age of a person).
| {{birth year from age at death}} | To display approximate birth year based on age at death.
|
| |
|
|
Age only |
---|
| Template | Description / use
| {{age}} | Age based on number of complete years between two dates.
| {{age nts}} | {{age}} with output formatted for use in sortable tables.
| {{age as of date}} | Current age (in years) from a known age at a specified date.
| |
|
|
|
|