Get diff years from date field and now

Last updated Oct 16 2019

window.ftGetDiffYearsFromNow(fieldID, format);
This JS function will allow you to find the difference between a certain date and the current date - in years.
* Please note: The permitted formats for date are:
"dd/mm/yyyy'
"mm/dd/yyyy"
"yyyy-mm-dd"

For example:
window.ftGetDiffYearsFromNow('fld2','dd/mm/yyyy');
The above code will calculate the difference in years between field fld2 and current date.

 

 

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