How To Calculate Current Age Formula

Hi again!

How can I calculate someone’s current age? I want the age of the client to be shown once the date of birth is entered, but in another input field. Like in the example below. Can anyone help? :slightly_smiling_face:


Hi @simone,

You can add a text element to the page and use something like this:

THANK YOU, you’re a genius ! When the DOB field isn’t populated it shows “2019” for the age text. I’m going to try and hide it until the DOB is populated. Wish me luck! LOL


@simone No problem! You could do something simple to hide the text until the DOB is filled out…


Not sure if that’s what you’re looking for though.

Sorry, it doesn’t populate the age when adding this condition.

Is the DOB a date/time field or input?

If you’d like, I’d be happy to take a look. Can you pm or share the editor?

It’s an input field.

This is how I created the formula based on it being an input field for the DOB


1 Like

I’m able to produce it with it being an input. Have you made sure to set the Content Format of the input to Date? Your instance looks setup correctly:

Current date/time:extract year - InputDOB’s value:extract year

Condition: When inputDOB’s value is empty
This element is visible = unchecked

Yes, the content is Date

And this is the current condition for the text

I’ll just PM :upside_down_face:

Your ‘Text Current date/time:ex’ should be set to the input, not the date/time picker.

When InputDOB’s value is empty = This element is visible should be unchecked

-Sure, pm is fine :slight_smile:

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