What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    How can I calculate the age based on Date of Birth entered?

    Asked by iwsmith on April 07, 2017 at 10:09 AM

    how can i calculate an age based upon a DOB entered

  • Profile Image
    JotForm Support

    Answered by Jim_R on April 07, 2017 at 12:26 PM

    Although we don't have an innate feature like this, you can still achieve the same goal by using the Form Calculation Widget.

    Related guide: How-to-Add-a-Widget-to-your-Form 

    For this, you'd need to use the floor() function to get the base result in case there are decimal places since age is always a whole number.

    Your general formula would be:

    floor ((TODAY - DOB) / 365.25)

    1. Add a Date Picker field where the respondent can enter his DOB

    2. Add a 2nd Date Picker that will be hidden and will always show Today's date

    3. Add the Form Calculation widget

    4. Click the ... 3-dotted menu to add the floor() function

    5. Then complete the formula as shown above

    Result: https://www.jotform.com/70964408638971 

  • Profile Image

    Answered by iwsmith on April 07, 2017 at 03:44 PM
    Thanks I figured it out ☺
    ...