Avatar

Level 10

Hi,

as I don't know how you currently check your date values, I'm just guessing.

Here's the way I would do with a FormCalc script in the exit event of a date field.

if (Date2Num($.formattedValue, "MM/MM/YYYY") > date()) then

          $host.messageBox("Date connot be in the future")

          $ = ""

endif