Get diff days from 2 dates

Last updated Oct 16 2019

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


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

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