I have a date of birth field, i want to calculate and display the age of user as he enters his date of birth. The must be in the format of yyyy-mm-dd
I tried the logic, but only got the years and unable to calculate months and days of age from user date of birth
New contributor
Saad is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2