Calculating the difference between two date fields in days
The example shows after entering two date values the difference can be calculated in days.
Important: The date fields are initialised in the script, so the date fields have the data type text.
Enable JavaScript to see the sample code