same as above except a new field (call it whatever you want)Add this
script to the new field using "calculate":if (Date2Num(EndDate,
"YYYY-MM-DD") and Date2Num(StartDate, "YYYY-MM-DD")) then if
(Date2Num(EndDate, "YYYY-MM-DD") < Date2Num(StartDate, "YYYY-MM-DD"))
then xfa.host.messageBox("The second date is earlier then the first
date.\u000aThe date fields will reset.", "Information", 3, 1) StartDate
= null EndDate = null $ = null xfa.host.setFocus("StartDate") else $ =
Date2Num(EndDate, "YYYY-M...