Forum Academy Marketplace Showcase Pricing Features

Convering birth date to an age

Hi so I was wondering is it possible to collect a birth date on one page then show the age of the person on another. 04-16-1995 -> 23 years old

You can use Current Date and Time - Date :formatted as days / 365 : rounded to 0.

Here’s a quick video of how to set it up. (Note: you can also use :floor or :ceiling if you want to round up or down.

Dan (creator of LearnTo - 110+ tutorials for learning Bubble)

1 Like

Current date/time minus birthdate:expressed as years is the user’s age.

(Within a margin of 24 hours.)

Dan’s answer is more precise (bubble-wise) than mine. (But you can extract years and skip the days to years math.). #jussayin

1 Like

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