Template:Age/doc

Description
This template returns the number of full years between two specified dates, or a specified date and today. Good for automatically displaying the age of a person, place, or thing.

Usage
To display the age of something between two dates:

Be sure to specify the year, months, and days as numerical values. It does not matter if they are zero-padded or not.

Examples:

To display the age of something between a specified date and today, simply exclude the last three parameters.

Examples:

When entering dates before AD/CE, use astronomical year numbering: 1 BC/BCE is represented by 0, 2 BC/BCE by -1, 3 BC/BCE by -2 etc. For example, the following expression returns the number of full years elapsed since the battle of Cannae, which took place on August 2, 216 BC/BCE:

(returns "1810")

This template does not check for incorrect input:
 * Notes
 * returns "0" (surplus days do not count as extra months)
 * returns "0" (surplus months do not count as extra years)

Credits
This template's code was taken from Template:Age on the English Wikipedia. This template's documentation was partially taken from Template:Age/doc.