How to Calculate Age of the User

  • Profile Image
    Asked on July 06, 2016 at 11:47 PM
  • Profile Image
    Answered 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.


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



    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.