Template:Age in days/doc

Description & Usage
This template is used to calculate the duration between two dates in days. It can be useful for continuously counting the number of days that has passed for an event.

{	"params": { "month2": { "type": "number", "suggested": true },		"day2": { "type": "number", "suggested": true },		"year2": { "type": "number", "suggested": true },		"month1": { "type": "number", "required": true },		"day1": { "type": "number", "required": true },		"year1": { "type": "number", "required": true }	},	"paramOrder": [ "month1", "day1", "year1", "month2", "day2", "year2" ],	"format": "inline", "description": "This template is used to calculate the duration between two dates in days. It can be useful for continuously counting the number of days that has passed for an event. \n\nThe parameters for this template is a pair of two dates which includes a month, day, and year. While you can provide both dates, you can also fill in the first date and the template will automatically fill the second date with today's date.\n\nThese dates should be written in their numerical representation (such as 9-25-2027) or the template will return an error and will not work as expected." }

Sample Output
Writing 8973 days will result in:

8973 days

Writing will result in:

Dependencies
This template uses the Gregorian serial date template and parser functions to calculate the result.