Age
From NEC Retro
Convert a date in the format YYYY-MM-DD to an age in years (based on the current date).
Usage
- {{age|1991-06-23}} = 31
- {{age|1991}} = 30-31
- {{age|1999-xx-xx}} = 22-23
- {{age|199x}} = 22-32
- {{age|199x|2000}} = 0-10
- {{age|199x|lowonly=yes}} = 22
- {{age|199x|highonly=yes}} = 32
Optional parameter
Add a second date to calculate the age on that date.
- {{age|1991-06-23|1999-09-09}} = 8