Template:Start date and age: Difference between revisions

From Hydrogenaudio Knowledgebase
(Initial version of template, with basic year calculation.)
 
m (Minor update to formatting.)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{#dateformat:{{{1|{{CURRENTYEAR}}}}}{{#if:{{{2|}}}|-{{{2|}}}|}}{{#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 17:14, 15 July 2019

2024; 0 years ago

Documentation

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