How calculate user age

I have found a way which is intuitive and easy to write in native bubble. It handles leap years perfectly as far as I can tell.

  1. subtract DOB year from this year
  2. if current date in DOB’s year is before DOB, subtract 1, otherwise subtract 0

image

More details:

And it works in the back end too.

6 Likes