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.
Date Difference Widget: How to calculate age using the widget?Asked by dpcrout 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.
date difference difference date of birth thanks and
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:
Hope this helps.