Template:Birth-date and age/doc



Birth-date and age displays a person's birth date and age. Besides calculating the age of the person, the benefit of using this template is to allow for the inclusion of hidden microformat dates, which may be indexed or searched by software tools.

Note: The template may not calculate the age correctly if a full date (month, day, year) is not provided. For example, a person who was born in 1941 could be either or, depending on whether they have reached their birthday in the current year:
 * → 1941
 * → July 1941

When only the year is known, consider using Birth year and age instead:
 * → 1941 (age 83)
 * → 1941 (age 83)

Usage

 * Format:

hCard microformat
This template also returns the date, hidden by CSS, in the ISO 8601 standard. For example:

Note: For the "foundation", "built" and similar set-up dates of companies, buildings etc., use start date (this will work for year-only or month-year dates). Because the ISO 8601 standard requires the Gregorian calendar, this template should not be used if the date is given in the Julian calendar.

For further information, visit the microformats project.

Microformat output
Birth date and age templates:

Supporting templates

 * Template:Birth-date
 * Template:Age

Alternative template

 * Template:Birth date and age (The name of the alternative template does not have a hyphen after "Birth".)

Tracking categories

 * – added by Template:Birth-date
 * – added by Template:Birth-date and other templates
 * – added by Template:Birth-date and other templates