<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.nichework.com/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AAge_in_years_and_days%2Fdoc</id>
	<title>Template:Age in years and days/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.nichework.com/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AAge_in_years_and_days%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.nichework.com/w/index.php?title=Template:Age_in_years_and_days/doc&amp;action=history"/>
	<updated>2026-05-06T15:00:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.5</generator>
	<entry>
		<id>https://wiki.nichework.com/w/index.php?title=Template:Age_in_years_and_days/doc&amp;diff=3357&amp;oldid=prev</id>
		<title>MarkAHershberger: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.nichework.com/w/index.php?title=Template:Age_in_years_and_days/doc&amp;diff=3357&amp;oldid=prev"/>
		<updated>2026-01-19T18:42:18Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:42, 19 January 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>MarkAHershberger</name></author>
	</entry>
	<entry>
		<id>https://wiki.nichework.com/w/index.php?title=Template:Age_in_years_and_days/doc&amp;diff=3356&amp;oldid=prev</id>
		<title>w&gt;Johnuniq: tweaks</title>
		<link rel="alternate" type="text/html" href="https://wiki.nichework.com/w/index.php?title=Template:Age_in_years_and_days/doc&amp;diff=3356&amp;oldid=prev"/>
		<updated>2024-06-17T04:15:17Z</updated>

		<summary type="html">&lt;p&gt;tweaks&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{High-use}}&lt;br /&gt;
{{shortcut|Template:Age yd}}&lt;br /&gt;
&amp;lt;!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata --&amp;gt;&lt;br /&gt;
{{Lua|Module:Age}}&lt;br /&gt;
&lt;br /&gt;
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&amp;#039;s date.&lt;br /&gt;
&lt;br /&gt;
This template does not generate a sort key. In a [[Help:Sortable tables|sortable table]], use {{no redirect|Template:Ayd|&amp;lt;nowiki&amp;gt;{{ayd}}&amp;lt;/nowiki&amp;gt;}} which redirects to {{tl|age in years and days nts}}.&lt;br /&gt;
&lt;br /&gt;
Dates uses the [[Gregorian calendar]], without any Julian correction for [[Proleptic Gregorian calendar|proleptic Gregorian dates]] where the calendar was not effectively applied.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
Each date can be entered in a single parameter, or each date can be entered as three parameters: year, month, day.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{age in years and days|15 May 2010}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{age in years and days|15 May 2010}}&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{age in years and days|12 Aug 2003|24 Sep 2011}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{age in years and days|12 Aug 2003|24 Sep 2011}}&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{age in years and days|19 Jan 1689}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{age in years and days|19 Jan 1689}}&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{age in years and days|4 October 1582|Oct 15, 1582}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{age in years and days|4 October 1582|Oct 15, 1582}}&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{age in years and days|1989|7|23}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{age in years and days|1989|7|23}}&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{age in years and days|1989|7|23|2003|7|24}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{age in years and days|1989|7|23|2003|7|24}}&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{age in years and days|2007-03-02|2008-03-02}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{age in years and days|2007-03-02|2008-03-02}}&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{age in years and days|1999-11-07|2112-02-15}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{age in years and days|1999-11-07|2112-02-15}}&lt;br /&gt;
&lt;br /&gt;
An error is shown if an entered date is not valid (1800, 1900 and 2100 were not leap years).&amp;lt;!--fixed wikitext to avoid tracking category--&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{age in years and days|31 January 1892|29 February 1900}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → &amp;lt;span id=&amp;quot;FormattingError&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;strong class=&amp;quot;error&amp;quot;&amp;gt;Error: Second date should be year, month, day&amp;lt;/strong&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{age in years and days|13 April 753 BC|11 March 1986}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; (proleptic) → {{age in years and days|13 April 753 BC|11 March 1986}} {{green|1=({{age in days|13 April 753 BC|11 March 1986|show unit=full}})}}&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{age in years and days|-752|4|13|1986|3|11}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; (proleptic) → {{age in years and days|-752|4|13|1986|3|11}}&lt;br /&gt;
&lt;br /&gt;
== Options ==&lt;br /&gt;
The default is to separate years and days with a comma. The separator is &amp;quot;and&amp;quot; if {{para|sep|and}} is used.&lt;br /&gt;
&lt;br /&gt;
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 {{para|duration|on}} is used.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{age in years and days|1 Jan 2011|31 Dec 2012}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{age in years and days|1 Jan 2011|31 Dec 2012}}&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{age in years and days|1 Jan 2011|31 Dec 2012|sep=and}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{age in years and days|1 Jan 2011|31 Dec 2012|sep=and}}&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{age in years and days|1 Jan 2011|31 Dec 2012|duration=on}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{age in years and days|1 Jan 2011|31 Dec 2012|duration=on}}&lt;br /&gt;
&lt;br /&gt;
==TemplateData==&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;1&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Earlier date&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The earlier date being compared&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;date&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;2&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Later date&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The later date being compared&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;date&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;Today&amp;#039;s date&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;sep&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Separator&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Defines a custom separator between the years and days&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;suggestedvalues&amp;quot;: [&lt;br /&gt;
				&amp;quot;and&amp;quot;&lt;br /&gt;
			],&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;,&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;duration&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Duration?&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Set to \&amp;quot;on\&amp;quot; to include the second date in the calculation; will return a result one higher than if left off&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;boolean&amp;quot;&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;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&amp;#039;s date)&amp;quot;,&lt;br /&gt;
	&amp;quot;paramOrder&amp;quot;: [&lt;br /&gt;
		&amp;quot;1&amp;quot;,&lt;br /&gt;
		&amp;quot;2&amp;quot;,&lt;br /&gt;
		&amp;quot;sep&amp;quot;,&lt;br /&gt;
		&amp;quot;duration&amp;quot;&lt;br /&gt;
	],&lt;br /&gt;
	&amp;quot;format&amp;quot;: &amp;quot;inline&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Birth, death and age templates|age}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Date mathematics templates]]&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>w&gt;Johnuniq</name></author>
	</entry>
</feed>