This is a quick script on how to can compare 2 for comparing two dates and ensures ensuring that one is larger than the other.
Please put this Type the following script in a the Custom HTML element in your form , and amend the form field name accordingly. In this example, it is Our example below shows a reading from the field fields "start_date" and "end_date".
...