Difference between revisions of "Template:Start date and age"

From Hydrogenaudio Knowledgebase
Jump to: navigation, search
m (Parentheses added around age.)
m (Minor update to formatting.)
 
Line 1: Line 1:
{{#dateformat:{{{1|{{CURRENTYEAR}}}}}{{#if:{{{2|}}}|-{{{2|01}}}|}}{{#if:{{{3|}}}|-{{{3|}}}|}}|mdy}} ({{#expr: {{CURRENTYEAR}}-{{{1|{{CURRENTYEAR}}}}} }} years ago)<noinclude>
+
{{#dateformat:{{{1|{{CURRENTYEAR}}}}}{{#if:{{{2|}}}|-{{{2|01}}}|}}{{#if:{{{3|}}}|-{{{3|}}}|}}|mdy}}; {{#expr:{{CURRENTYEAR}}-{{{1|{{CURRENTYEAR}}}}}}} {{#ifeq:{{#expr:{{CURRENTYEAR}}-{{{1}}}}}|1|year|years}} ago<noinclude>
 
==Documentation==
 
==Documentation==
 
<pre>{{start date and age|YYYY|MM|DD}}</pre>
 
<pre>{{start date and age|YYYY|MM|DD}}</pre>
 
</noinclude>
 
</noinclude>

Latest revision as of 18:14, 15 July 2019

2019; 0 years ago

Documentation[edit]

{{start date and age|YYYY|MM|DD}}