Avatar

Correct answer by
Level 10

var Input = Num2Date(Date2Num($.formattedValue, "DD.MM.YYYY"),"YYYY")

var CurrentYear = Num2Date(date(), "YYYY")

if (Input ne CurrentYear) then

     xfa.host.messageBox("Wrong Year")

endif

radzmar

http://thelivecycle.blogspot.com/

View solution in original post