Date Difference Widget: How to calculate age using the widget?

  • Profile Image
    Asked on September 20, 2016 at 05:46 PM



    I am trying to calculate a person's age based off the current date. I am using the Date Difference widget. I can put in the current date and the date of birth, but there is nowhere to display the results.


    I want to put in an Age field that will be the result of the date calculation, but I don't see how to do that.



  • Profile Image
    Answered on September 20, 2016 at 09:08 PM

    The widget will provide you the number of days between both dates, this value can be captured with the Form Calculation widget.

    First you need to set up the widget to give only the number of days as result: 

    Then you need to add the Form Calculation widget to your form and include the Date Difference widget there, please add the calculation as shown in the screenshot below: 

    Here is also how the value is captured, without the calculation shown above: 

    But calculating the result given by the widget you should be able to get the age: 

    Here is also my sample form so you can take a look, feel free to clone it too:

    Hope this helps.