Template:AgeD/doc

This template returns the number of days between two dates. Dates may be input either as full dates or as year, month and day. Omitted parameters to their current value.

See for more information on using this kind of template.

Full dates
Use:

Examples:

Year, month and day
Use:

Or with named parameters:

Examples:

Formatting
Three styles of formatting are possible.

For reasons of retrospective compatibility, the default when inputting dates as year, month and day is raw; however when inputting dates in full it is commas.


 * Note

Showing the unit
The default is not to show units. To show the unit ("day", days" or "d") use:

Rounding
The template rounds down to the nearest number of full days.

Time zones
As noted above, date parameters left undefined default to their current value.
 * Note that this is the current UTC value.