Template:Age in days
Appearance
This documentation is transcluded from Template:Age in days/doc.
Usage
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.
{{Age in days
|year1=
|month1=
|day1=
|year2=
|month2=
|day2=
}}
Example
If you provide both dates, it will output the distance between those two dates.
{{Age in days|2005|7|3|2025|3|14}} days
7194 days
If you only provide the first date, it will output the distance to the current date.
{{Age in days|2025|3|14}} days ago
393 days ago