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 to Calculate Age of the User

    Asked by synergee13 on July 06, 2016 at 11:47 PM
  • Profile Image
    JotForm Support

    Answered by EltonCris on July 07, 2016 at 12:47 AM


    We do not have specific widgets that calculates age but there's a workaround using form calculation.

    Demo: https://form.jotform.com/61880675038968

    Feel free to clone this form so you can figure out the whole setup.

    Guide: https://www.jotform.com/help/28-Cloning-a-Form-from-a-Web-Page


    Basically, what you need are 2 datetime fields and 2 form calculation fields.

    Here are the screenshots: Make sure to enable the default date on the 2 datetime fields.


    You need to define the formula on each of the calculation field.

    The first calculation field (Days) gets the number of days, here's the formula:

    On the second calculation field (Age), this will calculate the Age base from the given birth date of the user using math Floor function.

    If you need further assistance, do let us know.