How to compute age from Birthdate
Hayashi87
New Altair Community Member
I have a birthdate field in dd/mm/yyyy? How do you compute age using Generate Attributes?
Tagged:
0
Answers
-
date_diff(date_now(),birthday)/(1000*60*60*24*365.25)
1 -
Thanks Thomas, any idea why I am getting negative values and decimal in my age field?
0 -
Try '(Birthday,date_now())' instead. I went off my faulty memory, check the date_diff() function requirements.
1