Hi,
I have birth days in this format YYYY-MM-DD.
I want to calculate their ages.
Per exemple, someone born 1950-03-28 would be 70 years old.
Not sure how to do that. Any idea?
Thanks
Hi,
I have birth days in this format YYYY-MM-DD.
I want to calculate their ages.
Per exemple, someone born 1950-03-28 would be 70 years old.
Not sure how to do that. Any idea?
Thanks
Best answer by ebygomm
I'd probably use the Date/Time Functions, so parse the attribute named birthdate into date format, calculate the difference in years from today's date and round down
@floor(@DateTimeDiff(@DateTimeNow(),@DateTimeParse(@Value(birthdate),%Y-%m-%d),Years))
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.