Reputation: 1
I have a Date of birth field that I want to automatically calculate and display the user's age as he enters his date of birth which must be in the format of yyyy-mm-dd
I tried the logic but I've only managed to get the years. I'm still unable to calculate the months and days of age from user's date of birth.
Upvotes: 0
Views: 42