Home  

Random  

Nearby  



Log in  



Settings  



Donate  



About Wikipedia  

Disclaimers  



Wikipedia





Template:Age in years and days





Template  

Talk  



Language  

Watch  

View source  





This template returns the number of full years and surplus days between two specified dates. If only one date is entered, the template returns the number of full years and surplus days between the specified date and today's date.

This template does not generate a sort key. In a sortable table, use {{ayd}} which redirects to {{age in years and days nts}}.

Dates uses the Gregorian calendar, without any Julian correction for proleptic Gregorian dates where the calendar was not effectively applied.

Usage

Each date can be entered in a single parameter, or each date can be entered as three parameters: year, month, day.

An error is shown if an entered date is not valid (1800, 1900 and 2100 were not leap years).

Dates before the Common Era can use BC or BCE in a single parameter, or astronomical year numbering: 1 BCE is represented by 0, 2 BCE by −1, 3 BCE by −2 etc.

Options

The default is to separate years and days with a comma. The separator is "and" if |sep=and is used.

The default calculates an age—the day of the second date is not included in the calculation. A duration including the second date is calculated if |duration=on is used.

TemplateData

Returns the number of full years and surplus days between two specified dates (or, if only one date is entered, between the specified date and today's date)

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Earlier date1

The earlier date being compared

Daterequired
Later date2

The later date being compared

Default
Today's date
Datesuggested
Separatorsep

Defines a custom separator between the years and days

Suggested values
and
Default
,
Stringoptional
Duration?duration

Set to "on" to include the second date in the calculation; will return a result one higher than if left off

Booleanoptional

Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Age_in_years_and_days&oldid=1051188344"
 



Last edited on 22 October 2021, at 01:53  


Languages

 


Alemannisch
العربية

Azərbaycanca
تۆرکجه
Basa Bali

Banjar
 / Bân-lâm-gú
Беларуская

Boarisch
Bosanski
Català
Чӑвашла
Cebuano
Čeština
Cymraeg
Dansk
Deutsch
Dolnoserbski

Eesti
Ελληνικά
Español
Esperanto
Euskara
فارسی
Français
Galego


Հայերեն
ि
Hornjoserbsce
Ilokano
Bahasa Indonesia
Italiano
Jawa
Kapampangan

Kurdî
ि
Македонски


مصرى
مازِرونی
Bahasa Melayu
Minangkabau
Мокшень
Монгол

Nederlands


Norsk bokmål
ି
Oʻzbekcha / ўзбекча


پښتو

Polski
Português
Русский

Scots
Simple English
Slovenčina
Slovenščina
کوردی
Српски / srpski
Sunda
Svenska
 


Türkçe
Türkmençe
Українська
اردو
Vèneto
Tiếng Vit




 

Wikipedia


This page was last edited on 22 October 2021, at 01:53 (UTC).

Content is available under CC BY-SA 4.0 unless otherwise noted.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Terms of Use

Desktop