Here's what I have used...
// form1.page1.subform1.otherDate::exit - (FormCalc, client)
var currentDateNum = Date2Num(form1.page1.subform1.currentDate,"MM/DD/YYYY")
var dateNum = Date2Num($.rawValue,"YYYY-MM-DD")
if (dateNum <= currentDateNum) then
xfa.host.messageBox("The date must be after the current date.")
endif
where
// form1.page1.subform1.currentDate::ready:layout - (FormCalc, client)
$.rawValue = Concat(Num2Date(Date(), "MM/DD/YYYY"))
Steve