Template:Age in years, months and days/testcases

Partial start date, no end dateEdit

{{Age in years, months and days|year=2008}}
Current: 12 or 13 years
Sandbox: 12 or 13 years
{{Age in years, months and days|month=3}} (invalid usage)
Current: Error: Need valid year, month, day
Sandbox: Error: Need valid year, month, day
{{Age in years, months and days|day=10}} (invalid usage)
Current: Error: Need valid year, month, day
Sandbox: Error: Need valid year, month, day
{{Age in years, months and days|year=2008|month=7}}
Current: 12 years and 10 or 11 months
Sandbox: 12 years and 10 or 11 months
{{Age in years, months and days|year=2008|day=10}} (invalid usage)
Current: Error: Need valid year, month, day
Sandbox: Error: Need valid year, month, day
{{Age in years, months and days|month=3|day=10}} (invalid usage)
Current: Error: Need valid year, month, day
Sandbox: Error: Need valid year, month, day

Partial start date, full end dateEdit

{{Age in years, months and days|1=2008|4=2015|5=1|6=15}}
Current: 6 or 7 years
Sandbox: 6 or 7 years
{{Age in years, months and days|1=2008|4=2015|5=12|6=15}}
Current: 6 or 7 years
Sandbox: 6 or 7 years
{{Age in years, months and days|2=3|4=2022|5=7|6=15}} (invalid usage)
Current: Error: Need valid year, month, day
Sandbox: Error: Need valid year, month, day
{{Age in years, months and days|3=10|4=2022|5=7|6=15}} (invalid usage)
Current: Error: Need valid year, month, day
Sandbox: Error: Need valid year, month, day
{{Age in years, months and days|1=2008|2=7|4=2015|5=8|6=15}}
Current: 7 years and 0 or 1 month
Sandbox: 7 years and 0 or 1 month
{{Age in years, months and days|1=2008|2=7|4=2015|5=7|6=15}}
Current: 6 or 7 years
Sandbox: 6 or 7 years
{{Age in years, months and days|1=2008|2=7|4=2015|5=6|6=15}}
Current: 6 years and 10 or 11 months
Sandbox: 6 years and 10 or 11 months
{{Age in years, months and days|1=2007|2=12|4=2015|5=1|6=15}}
Current: 7 years and 0 or 1 month
Sandbox: 7 years and 0 or 1 month
{{Age in years, months and days|1=2008|2=1|4=2014|5=12|6=15}}
Current: 6 years and 10 or 11 months
Sandbox: 6 years and 10 or 11 months
{{Age in years, months and days|1=2008|3=10|4=2015|5=7|6=15}} (invalid usage)
Current: Error: Need valid year, month, day
Sandbox: Error: Need valid year, month, day
{{Age in years, months and days|2=3|3=10|4=2022|5=7|6=15}} (invalid usage)
Current: Error: Need valid year, month, day
Sandbox: Error: Need valid year, month, day

Full start date, no end dateEdit

{{Age in years, months and days|year=2019|month=05|day=16}}
Current: 2 years, 1 month and 1 day
Sandbox: 2 years, 1 month and 1 day
{{Age in years, months and days|year=2019|month=05|day=17}}
Current: 2 years and 1 month
Sandbox: 2 years and 1 month
{{Age in years, months and days|year=2019|month=05|day=18}}
Current: 2 years and 30 days
Sandbox: 2 years and 30 days
{{Age in years, months and days|year=2019|month=06|day=16}}
Current: 2 years and 1 day
Sandbox: 2 years and 1 day
{{Age in years, months and days|year=2019|month=06|day=17}}
Current: 2 years
Sandbox: 2 years
{{Age in years, months and days|year=2019|month=06|day=18}}
Current: 1 year, 11 months and 30 days
Sandbox: 1 year, 11 months and 30 days
{{Age in years, months and days|year=2019|month=07|day=16}}
Current: 1 year, 11 months and 1 day
Sandbox: 1 year, 11 months and 1 day
{{Age in years, months and days|year=2019|month=07|day=17}}
Current: 1 year and 11 months
Sandbox: 1 year and 11 months
{{Age in years, months and days|year=2019|month=07|day=18}}
Current: 1 year, 10 months and 30 days
Sandbox: 1 year, 10 months and 30 days
{{Age in years, months and days|year=2020|month=05|day=16}}
Current: 1 year, 1 month and 1 day
Sandbox: 1 year, 1 month and 1 day
{{Age in years, months and days|year=2020|month=05|day=17}}
Current: 1 year and 1 month
Sandbox: 1 year and 1 month
{{Age in years, months and days|year=2020|month=05|day=18}}
Current: 1 year and 30 days
Sandbox: 1 year and 30 days
{{Age in years, months and days|year=2020|month=06|day=16}}
Current: 1 year and 1 day
Sandbox: 1 year and 1 day
{{Age in years, months and days|year=2020|month=06|day=17}}
Current: 1 year
Sandbox: 1 year
{{Age in years, months and days|year=2020|month=06|day=18}}
Current: 11 months and 30 days
Sandbox: 11 months and 30 days
{{Age in years, months and days|year=2020|month=07|day=16}}
Current: 11 months and 1 day
Sandbox: 11 months and 1 day
{{Age in years, months and days|year=2020|month=07|day=17}}
Current: 11 months
Sandbox: 11 months
{{Age in years, months and days|year=2020|month=07|day=18}}
Current: 10 months and 30 days
Sandbox: 10 months and 30 days
{{Age in years, months and days|year=2021|month=05|day=16}}
Current: 1 month and 1 day
Sandbox: 1 month and 1 day
{{Age in years, months and days|year=2021|month=05|day=17}}
Current: 1 month
Sandbox: 1 month
{{Age in years, months and days|year=2021|month=05|day=18}}
Current: 30 days
Sandbox: 30 days
{{Age in years, months and days|year=2021|month=06|day=16}}
Current: 1 day
Sandbox: 1 day
{{Age in years, months and days|year=2021|month=06|day=17}}
Current: 0 days
Sandbox: 0 days
{{Age in years, months and days|year=2021|month=06|day=18}} (invalid usage)
Current: −1 day
Sandbox: −1 day
{{Age in years, months and days|year=2021|month=07|day=16}} (invalid usage)
Current: −29 days
Sandbox: −29 days
{{Age in years, months and days|year=2021|month=07|day=17}} (invalid usage)
Current: −1 month
Sandbox: −1 month
{{Age in years, months and days|year=2021|month=07|day=18}} (invalid usage)
Current: −1 month and 1 day
Sandbox: −1 month and 1 day
{{Age in years, months and days|year=2022|month=05|day=16}} (invalid usage)
Current: −10 months and 29 days
Sandbox: −10 months and 29 days
{{Age in years, months and days|year=2022|month=05|day=17}} (invalid usage)
Current: −11 months
Sandbox: −11 months
{{Age in years, months and days|year=2022|month=05|day=18}} (invalid usage)
Current: −11 months and 1 day
Sandbox: −11 months and 1 day
{{Age in years, months and days|year=2022|month=06|day=16}} (invalid usage)
Current: −11 months and 30 days
Sandbox: −11 months and 30 days
{{Age in years, months and days|year=2022|month=06|day=17}} (invalid usage)
Current: −1 year
Sandbox: −1 year
{{Age in years, months and days|year=2022|month=06|day=18}} (invalid usage)
Current: −1 year and 1 day
Sandbox: −1 year and 1 day
{{Age in years, months and days|year=2022|month=07|day=16}} (invalid usage)
Current: −1 year and 29 days
Sandbox: −1 year and 29 days
{{Age in years, months and days|year=2022|month=07|day=17}} (invalid usage)
Current: −1 year and 1 month
Sandbox: −1 year and 1 month
{{Age in years, months and days|year=2022|month=07|day=18}} (invalid usage)
Current: −1 year, 1 month and 1 day
Sandbox: −1 year, 1 month and 1 day

Full start date, partial end dateEdit

{{Age in years, months and days|1=2008|2=1|3=15|4=2015}} (invalid usage)
Current: 6 or 7 years
Sandbox: 6 or 7 years
{{Age in years, months and days|1=2008|2=12|3=15|4=2015}} (invalid usage)
Current: 6 or 7 years
Sandbox: 6 or 7 years
{{Age in years, months and days|1=2008|2=7|3=15|5=3}} (invalid usage)
Current: Error: Second date should be year, month, day
Sandbox: Error: Second date should be year, month, day
{{Age in years, months and days|1=2008|2=7|3=15|6=10}} (invalid usage)
Current: Error: Second date should be year, month, day
Sandbox: Error: Second date should be year, month, day
{{Age in years, months and days|1=2008|2=3|3=10|4=2015|5=8}} (invalid usage)
Current: 7 years and 4 or 5 months
Sandbox: 7 years and 4 or 5 months
{{Age in years, months and days|1=2008|2=3|3=10|4=2015|6=15}} (invalid usage)
Current: Error: Second date should be year, month, day
Sandbox: Error: Second date should be year, month, day
{{Age in years, months and days|1=2008|2=3|3=10|5=7|6=15}} (invalid usage)
Current: Error: Second date should be year, month, day
Sandbox: Error: Second date should be year, month, day

Full start and end datesEdit

{{Age in years, months and days|2008|1|1|2015|12|31}}
Current: 7 years, 11 months and 30 days
Sandbox: 7 years, 11 months and 30 days
{{Age in years, months and days|2008|1|15|2015|12|14}}
Current: 7 years, 10 months and 29 days
Sandbox: 7 years, 10 months and 29 days
{{Age in years, months and days|2008|1|15|2015|12|15}}
Current: 7 years and 11 months
Sandbox: 7 years and 11 months
{{Age in years, months and days|2008|1|15|2015|12|16}}
Current: 7 years, 11 months and 1 day
Sandbox: 7 years, 11 months and 1 day
{{Age in years, months and days|2008|1|31|2015|12|1}}
Current: 7 years, 10 months and 1 day
Sandbox: 7 years, 10 months and 1 day
{{Age in years, months and days|2008|7|1|2015|1|31}}
Current: 6 years, 6 months and 30 days
Sandbox: 6 years, 6 months and 30 days
{{Age in years, months and days|2008|7|1|2015|7|31}}
Current: 7 years and 30 days
Sandbox: 7 years and 30 days
{{Age in years, months and days|2008|7|1|2015|8|31}}
Current: 7 years, 1 month and 30 days
Sandbox: 7 years, 1 month and 30 days
{{Age in years, months and days|2008|7|15|2015|1|14}}
Current: 6 years, 5 months and 30 days
Sandbox: 6 years, 5 months and 30 days
{{Age in years, months and days|2008|7|15|2015|1|15}}
Current: 6 years and 6 months
Sandbox: 6 years and 6 months
{{Age in years, months and days|2008|7|15|2015|1|16}}
Current: 6 years, 6 months and 1 day
Sandbox: 6 years, 6 months and 1 day
{{Age in years, months and days|2008|7|15|2015|7|14}}
Current: 6 years, 11 months and 29 days
Sandbox: 6 years, 11 months and 29 days
{{Age in years, months and days|2008|7|15|2015|7|15}}
Current: 7 years
Sandbox: 7 years
{{Age in years, months and days|2008|7|15|2015|7|16}}
Current: 7 years and 1 day
Sandbox: 7 years and 1 day
{{Age in years, months and days|2008|7|15|2015|8|14}}
Current: 7 years and 30 days
Sandbox: 7 years and 30 days
{{Age in years, months and days|2008|7|15|2015|8|15}}
Current: 7 years and 1 month
Sandbox: 7 years and 1 month
{{Age in years, months and days|2008|7|15|2015|8|16}}
Current: 7 years, 1 month and 1 day
Sandbox: 7 years, 1 month and 1 day
{{Age in years, months and days|2008|7|31|2015|1|1}}
Current: 6 years, 5 months and 1 day
Sandbox: 6 years, 5 months and 1 day
{{Age in years, months and days|2008|7|31|2015|7|1}}
Current: 6 years, 11 months and 1 day
Sandbox: 6 years, 11 months and 1 day
{{Age in years, months and days|2008|7|31|2015|8|1}}
Current: 7 years and 1 day
Sandbox: 7 years and 1 day
{{Age in years, months and days|2008|8|1|2015|7|31}}
Current: 6 years, 11 months and 30 days
Sandbox: 6 years, 11 months and 30 days
{{Age in years, months and days|2008|8|15|2015|7|14}}
Current: 6 years, 10 months and 29 days
Sandbox: 6 years, 10 months and 29 days
{{Age in years, months and days|2008|8|15|2015|7|15}}
Current: 6 years and 11 months
Sandbox: 6 years and 11 months
{{Age in years, months and days|2008|8|15|2015|7|16}}
Current: 6 years, 11 months and 1 day
Sandbox: 6 years, 11 months and 1 day
{{Age in years, months and days|2008|8|31|2015|7|1}}
Current: 6 years, 10 months and 1 day
Sandbox: 6 years, 10 months and 1 day
{{Age in years, months and days|2008|12|1|2015|1|31}}
Current: 6 years, 1 month and 30 days
Sandbox: 6 years, 1 month and 30 days
{{Age in years, months and days|2008|12|15|2015|1|14}}
Current: 6 years and 30 days
Sandbox: 6 years and 30 days
{{Age in years, months and days|2008|12|15|2015|1|15}}
Current: 6 years and 1 month
Sandbox: 6 years and 1 month
{{Age in years, months and days|2008|12|15|2015|1|16}}
Current: 6 years, 1 month and 1 day
Sandbox: 6 years, 1 month and 1 day
{{Age in years, months and days|2008|12|31|2015|1|1}}
Current: 6 years and 1 day
Sandbox: 6 years and 1 day
{{Age in years, months and days|2008|1|29|2015|3|1}}
Current: 7 years, 1 month and 1 day
Sandbox: 7 years, 1 month and 1 day
{{Age in years, months and days|2008|1|30|2015|3|1}}
Current: 7 years, 1 month and 1 day
Sandbox: 7 years, 1 month and 1 day
{{Age in years, months and days|2008|1|31|2015|3|1}}
Current: 7 years, 1 month and 1 day
Sandbox: 7 years, 1 month and 1 day
{{Age in years, months and days|2008|2|1|2015|3|1}}
Current: 7 years and 1 month
Sandbox: 7 years and 1 month
{{Age in years, months and days|2008|8|29|2015|3|1}}
Current: 6 years, 6 months and 1 day
Sandbox: 6 years, 6 months and 1 day
{{Age in years, months and days|2008|8|30|2015|3|1}}
Current: 6 years, 6 months and 1 day
Sandbox: 6 years, 6 months and 1 day
{{Age in years, months and days|2008|8|31|2015|3|1}}
Current: 6 years, 6 months and 1 day
Sandbox: 6 years, 6 months and 1 day
{{Age in years, months and days|2008|9|1|2015|3|1}}
Current: 6 years and 6 months
Sandbox: 6 years and 6 months
{{Age in years, months and days|2008|8|31|2015|2|28}}
Current: 6 years, 5 months and 28 days
Sandbox: 6 years, 5 months and 28 days
{{Age in years, months and days|2008|8|31|2015|3|1}}
Current: 6 years, 6 months and 1 day
Sandbox: 6 years, 6 months and 1 day
{{Age in years, months and days|2008|8|31|2015|3|2}}
Current: 6 years, 6 months and 2 days
Sandbox: 6 years, 6 months and 2 days
{{Age in years, months and days|2008|8|31|2015|3|3}}
Current: 6 years, 6 months and 3 days
Sandbox: 6 years, 6 months and 3 days