Calculating approx. age of user from birthdate

Here is an image on how I calculated the age of a user from a birthdate. This can be trickly with parenthesis! Image show a view of workflow and design workflow|690x388

Hi @catinota

Thanks for sharing, but this calculation will only be correct after the user’s birthday, no? So if we’re in January, and the user’s birthday is in February, the calculation will be off.

Or am I missing something?

lets try with a new app

You are right petter, does give an approximate value based on the year of birth https://agecalculation.bubbleapps.io/

Screen Shot 2020-11-27 at 1.36.04 AM Screen Shot 2020-11-27 at 1.35.54 AM

I don’t know if this is off or not, but believe it is not.

2 Likes

Age in years calculation ignoring time of day on birthday relative to time of day today

  • Current year - input year - (if input month/date < current month/date then 1 else 0)
  • Example: 2024 - 2014 - (if Jun 28, 2024 12:00 am < Jun 29, 2024 12:00 am then 1 else 0)