How to calculate age in years and months – Need help


Hi,
If the user DOB is April 16, 2017, I want to get the result like 6years, 7 months old. I have tried using the below expression to calculate age. It is working fine for years but stuck in between calculating the remaining months.

Expression to calculate age – Current date/time-Current page user’s DOB formatted as days/365:floor

Thank You!



Source link

Leave a Comment