Template:Age/doc

See for more information on using this kind of template.

Usage
This template returns the number of full years between two specified dates. If the second set of parameters is not included, it returns the number of full years between a specified date and today's date.

Dates are checked for validity. For example, 29 February 2000 is accepted, but 29 February 1900 is not a valid date.

Partial dates such as July 1989 (no day) or 1989 (no month and no day) can be entered using  for missing values. Having no year, or having a day with no month is an error.


 * Syntax:
 * year or
 * year or
 * date or
 * date


 * Examples:
 * 1989 → 13
 * 1989 → 14
 * 1989 → 0
 * 1989 → 35
 * 23 July 1989 → 0
 * July 1989 → 21


 * When entering dates before the, use astronomical year numbering: 1 BCE is represented by , 2 BCE by  , 3 BCE by   etc.  For example, the following gives the number of full years since the battle of Cannae, which took place on August 2, 216 BCE:
 * -215 → 1810
 * August 2, 216 BCE → 24
 * -215 → 0

When only one date is entered, the current date is used for the other date.