Template:Age in days/doc
Jump to navigation
Jump to search
This template returns the number of days between two dates. If the second set of parameters is not included it will calculate the days between the given date and today.
Usage
{{Age in days |year1= |month1= |day1= |year2= |month2= |day2= }}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
year1 1 | year 1 | year of 1. date | empty | required |
month1 2 | month 1 | month of 1. date | empty | required |
day1 3 | day 1 | day of 1. date | empty | required |
year2 4 | year 2 | year of 2. date | current year, e.g.: 2024 | optional |
month2 5 | month 2 | month of 2. date | current month, e.g.: 12 | optional |
day2 6 | day 2 | day of 2. date | current day, e.g.: 22 | optional |
Additional information
The template is intended to be used in the following namespaces: no namespace specified
The template is intended to be used by the following user groups: no user group specified
Examples
{{Age in days|2007|5|24|2008|4|23}}
renders as:
335
{{Age in days|2007|5|24}}
renders as:
6422
Localization
This template is not intended to be localized.