How to calculate age in years and months

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!

This topic was automatically closed after 70 days. New replies are no longer allowed.