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 do i calculate age

    Asked by billflinn on February 15, 2016 at 06:20 PM
    calculate age how how do i
  • Profile Image
    JotForm Support

    Answered by Chriistian on February 16, 2016 at 02:56 AM

    If you want to calculate the age in your form, simply follow the steps below:

    1. Add two date fields, one for the birthday and one for the current date

    2. Click on the Today field and on the form builder menu, select Default Date > Current

    This sets the default date of today field to the current date.

    3. Now add the Form Calculation Widget, then click the Wand Icon to open the wizard

    4. Follow this guide on how to perform calculations using the calculation widget: How to perform calculation in the form?

    Use this formula to get the age: (todayField - birthdateField) / 365

    Then click Show Advanced Options

    5. Make sure that the decimal places is set to 0.

    You're all set. You can check out this form to see the calculation in action: https://form.jotform.com/60461473281958

    If you like, you can clone it to your account by following this guide: How To Clone A Form

    Let us know if you need further assistance.

  • Profile Image

    Answered by excelconsulting on February 22, 2016 at 12:00 PM

    Hi!

    The above provided example does not provide an accurate answer. For instance, if I set the birth date to 24 Feb 1998, it gives an age of 18, which I will only reach after 2 days..

     

    Any solution to this?

  • Profile Image
    JotForm Support

    Answered by Kevin_G on February 22, 2016 at 01:05 PM

    @excelconsulting, 

    I have moved your question to this thread: http://www.jotform.com/answers/778200

    We will assist you there.