I have a table with two date fields
Both date fields are in a different subform, but in the same table and row
I want to compare dose fielfds.
Date 2 must be newer than Date 1
The pattern is D-M-YY
This is what i have so far, but is doesn't work
var vDate1 = Date2Num($.rawValue, "YY-M-D")
var vDate2 = Date2Num(DateField2.rawValue, "YY-M-D")
if (HasValue (vDate2)) then
if (vDate2 <= vDate1) then
xfa.host.messageBox("Error message")
$.rawValue = null
endif
endif
Is there someone who can help me with this?