<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.brunswickmdhistory.com/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="https://www.brunswickmdhistory.com/index.php?action=history&amp;feed=atom&amp;title=Template%3AAge_in_days%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://www.brunswickmdhistory.com/index.php?title=Template:Age_in_days/doc&amp;action=history"/>
	<updated>2026-06-04T15:07:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://www.brunswickmdhistory.com/index.php?title=Template:Age_in_days/doc&amp;diff=17174&amp;oldid=prev</id>
		<title>Dhuscha: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://www.brunswickmdhistory.com/index.php?title=Template:Age_in_days/doc&amp;diff=17174&amp;oldid=prev"/>
		<updated>2018-08-02T18:06:41Z</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 14:06, 2 August 2018&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>Dhuscha</name></author>
	</entry>
	<entry>
		<id>https://www.brunswickmdhistory.com/index.php?title=Template:Age_in_days/doc&amp;diff=17173&amp;oldid=prev</id>
		<title>wikipedia&gt;Adem20 at 16:30, 13 April 2017</title>
		<link rel="alternate" type="text/html" href="https://www.brunswickmdhistory.com/index.php?title=Template:Age_in_days/doc&amp;diff=17173&amp;oldid=prev"/>
		<updated>2017-04-13T16:30:49Z</updated>

		<summary type="html">&lt;p&gt;&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;
&amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
===Inputting dates===&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.  Omitted parameters to their current value.&lt;br /&gt;
&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.  The sort key is produced by {{tl|nts}} and is based on the SI unit of time (the second).&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 (using &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{formatnum:}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;) and true minus signs.&lt;br /&gt;
|-&lt;br /&gt;
|{{para|format|gaps}}        ||gives numbers formatted with thin spaces (using {{tl|val}}) 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;
===Rounding===&lt;br /&gt;
The template rounds down to the nearest number of full days.&lt;br /&gt;
&lt;br /&gt;
===Time zones===&lt;br /&gt;
As noted above, date parameters left undefined default to their current value.  Note that this is the current UTC value.  Instead of leaving the parameter blank, however, an offset may be added, {{nowrap|for example, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{age in days|28 December 2007|+ 5 hours 45 min}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;}} will give the number of days since the king of Nepal was deposed.  Note that this will only work when entering full dates {{nowrap|(e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{age in days|2007|12|28|+ 5 hours 45 min}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;}} will produce an error message).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Commons|Template:Age in days}}&lt;br /&gt;
* [[Wikipedia:Age calculation templates]]&lt;br /&gt;
* {{tl|Duration in days}}&lt;br /&gt;
* {{tl|Time ago}}&lt;br /&gt;
{{Birth, death and age templates}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&amp;lt;!--&lt;br /&gt;
++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. --&amp;gt;&lt;br /&gt;
[[Category:Date mathematics templates|{{PAGENAME}}]]&lt;br /&gt;
[[Category:Date-computing templates|{{PAGENAME}}]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>wikipedia&gt;Adem20</name></author>
	</entry>
</feed>