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.