Get age from date

Last updated Oct 16 2019

window.ftGetAge(fieldID, format);
This JS function will allow you to calculate the age of a person based on a date field in the form.
* Please note: The permitted formats for date are:
"dd/mm/yyyy'
"mm/dd/yyyy"
"yyyy-mm-dd"


For example:

window.ftGetAge('fld5','mm/dd/yyyy');
The above code will calculate a person's age based on the birth date entered in field :fld5.


CommentsLogin Required
Didn’t find what you were looking for?
Try the following for assistance or Use the Search box.