
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://intrusivegardening.org/index.php?action=history&amp;feed=atom&amp;title=Template%3AAge_in_days%2Fdoc</id>
	<title>Template:Age in days/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://intrusivegardening.org/index.php?action=history&amp;feed=atom&amp;title=Template%3AAge_in_days%2Fdoc"/>
	<link rel="alternate" type="text/html" href="http://intrusivegardening.org/index.php?title=Template:Age_in_days/doc&amp;action=history"/>
	<updated>2026-04-07T16:24:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>http://intrusivegardening.org/index.php?title=Template:Age_in_days/doc&amp;diff=892&amp;oldid=prev</id>
		<title>FluidicYottabyte: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://intrusivegardening.org/index.php?title=Template:Age_in_days/doc&amp;diff=892&amp;oldid=prev"/>
		<updated>2025-06-09T01:10:00Z</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:10, 8 June 2025&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>FluidicYottabyte</name></author>
	</entry>
	<entry>
		<id>http://intrusivegardening.org/index.php?title=Template:Age_in_days/doc&amp;diff=891&amp;oldid=prev</id>
		<title>https://en.wikipedia.org/wiki/&gt;Johnuniq: update to reflect changes since Module:Age used in April 2018‎</title>
		<link rel="alternate" type="text/html" href="http://intrusivegardening.org/index.php?title=Template:Age_in_days/doc&amp;diff=891&amp;oldid=prev"/>
		<updated>2024-05-13T10:04:19Z</updated>

		<summary type="html">&lt;p&gt;update to reflect changes since &lt;a href=&quot;/wiki/Module:Age&quot; title=&quot;Module:Age&quot;&gt;Module:Age&lt;/a&gt; used in April 2018‎&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|2348}}&lt;br /&gt;
{{Lua|Module:Age}}&lt;br /&gt;
{{Template shortcuts|aid}}&lt;br /&gt;
&lt;br /&gt;
This template returns the number of days between two dates. Dates may be input either as full dates or as year, month and day.&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
====Full dates====&lt;br /&gt;
To use, type:&lt;br /&gt;
:{|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{age in days|date1|date2}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;amp;nbsp;||(number of days between dates 1 and 2),&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{age in days|date1}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;            ||(number of days since date 1) or&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{age in days||date2}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;           ||(number of days until date 2)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
:{|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{age in days|19 Aug 2008|4 Sep 2010}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;            ||gives {{age in days|19 Aug 2008|4 Sep 2010}}&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{age in days|27 May 2002}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;                       ||gives {{age in days|27 May 2002}}&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{age in days||{{#time:j M Y|+ 15 months}}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;amp;nbsp;||gives {{age in days||{{#time:j M Y|+ 15 months}}}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Year, month and day====&lt;br /&gt;
To use, type:&lt;br /&gt;
:{|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{age in days|year1|month1|day1|year2|month2|day2}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;amp;nbsp;||(number of days between dates 1 and 2),&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{age in days|year1|month1|day1}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;                         ||(number of days since date 1) or&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{age in days||||year2|month2|day2}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;                      ||(number of day until date 2)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Or with named parameters:&lt;br /&gt;
:{|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{age in days|month1= |day1= |year1= |month2= |day2= | year2= }}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;amp;nbsp;||(number of days between dates 1 and 2),&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{age in days|month1= |day1= |year1= }}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;                               ||(number of days since date 1) or&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{age in days|month2= |day2= | year2= }}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;                              ||(number of day until date 2)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{age in days|2007|5|24|2008|4|23}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;amp;nbsp;||gives {{age in days|2007|5|24|2008|4|23}}&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{age in days|2007|5|24}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;                ||gives {{age in days|2007|5|24}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Sorting===&lt;br /&gt;
By adding {{para|sortable|on}} a sort key will be added to the output for use in sortable tables.&lt;br /&gt;
&lt;br /&gt;
===Formatting===&lt;br /&gt;
Three styles of formatting are possible.&lt;br /&gt;
:{|&lt;br /&gt;
|-&lt;br /&gt;
|{{para|format|raw}}         ||gives unformatted numbers with hyphens as minus signs&amp;lt;ref&amp;gt;Negative days will occur if the first date is after the second.&amp;lt;/ref&amp;gt; (for use in further calculations).&lt;br /&gt;
|-&lt;br /&gt;
|{{para|format|commas}}&amp;amp;nbsp;||gives numbers formatted with commas and true minus signs.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
For reasons of retrospective compatibility, the default when inputting dates as year, month and day is {{para|format|raw}}; however when inputting dates in full it is {{para|format|commas}}.&lt;br /&gt;
&lt;br /&gt;
:Note&lt;br /&gt;
{{Reflist}}&lt;br /&gt;
&lt;br /&gt;
===Showing the unit===&lt;br /&gt;
The default is not to show units.  To show the unit (&amp;quot;day&amp;quot;, days&amp;quot; or &amp;quot;d&amp;quot;) use {{para|show unit}}.&lt;br /&gt;
&lt;br /&gt;
:{|&lt;br /&gt;
|-&lt;br /&gt;
|{{para|show unit|abbr}}&amp;amp;nbsp;||adds &amp;quot;d&amp;quot; after the number of days.&lt;br /&gt;
|-&lt;br /&gt;
|{{para|show unit|full}}      ||adds &amp;quot;day&amp;quot; or &amp;quot;days&amp;quot; after the number of days as appropriate.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Wikipedia:Age calculation templates]]&lt;br /&gt;
* {{tl|Duration in days}}&lt;br /&gt;
* {{tl|Time ago}}&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 and interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Date mathematics templates|{{PAGENAME}}]]&lt;br /&gt;
[[Category:Date-computing templates|{{PAGENAME}}]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>https://en.wikipedia.org/wiki/&gt;Johnuniq</name></author>
	</entry>
</feed>