Get diff years from 2 dates

Last updated Oct 16 2019

window.ftGetDiffYears(fldIDFrom, fieldIDTo, format);
This JS function will allow you to find the difference between 2 dates -in years.
* Please note: The permitted formats for date are:
"dd/mm/yyyy'
"mm/dd/yyyy"
"yyyy-mm-dd"


For example:
window.ftGetDiffYears('fld3','fld5','dd/mm/yyyy');
The above code will calculate the difference in years between field fld3 and fld5.





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