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

From WikiFamily
Jump to navigation Jump to search
(Created page with "<includeonly> {{{1|YYYY}}}-{{{2|MM}}}-{{{3|DD}}} (age {{#expr: ({{CURRENTYEAR}} - {{{1}}}) - ({{CURRENTMONTH}} < {{{2}}} or ({{CURRENTMONTH}} == {{{2}}} and {{CURRENTDAY}} < {...")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{{{1|YYYY}}}-{{{2|MM}}}-{{{3|DD}}} (age {{#expr: ({{CURRENTYEAR}} - {{{1}}}) - ({{CURRENTMONTH}} < {{{2}}} or ({{CURRENTMONTH}} == {{{2}}} and {{CURRENTDAY}} < {{{3}}})) }})
{{#time: F j, Y | {{{1}}}-{{{2}}}-{{{3}}} }} (age {{#expr:  
  {{#time: Y}} - {{{1}}} -  
  ({{#ifexpr: {{#time: md}} < {{#time: md | {{{1}}}-{{{2}}}-{{{3}}} }} | 1 | 0 }})
}})
</includeonly>
</includeonly>

Latest revision as of 15:39, 17 February 2026