How do you output age in the grid by date of birth?



The author posted a question in Programming

How do you output age in the grid by date of birth? and got a better answer

Response from
take the year of birth from the date and subtract it from the current year if the month of birth is greater than the current month - subtract 1?

Response from 0[+++++]
take your year of birth from the date and subtract it from the current year if your month of birth is greater than the current month - subtract 1

 

To answer the question:

Name*

E-mail:*

Reply text:*
Verification code (enter 22):*