I think you just needed to replace it with: <@ISDATE VALUE="@@local$month/@@local$day/@@local$year">
And I want to remind you that the scope named 'local' was deprecated many years ago. You should be using 'request' now. This is critical because in the future the server will start complaining heavily about the use of 'local' as a scope name, then it'll stop working altogether. Robert -----Original Message----- From: Wayne Irvine [mailto:[email protected]] Sent: Friday, March 18, 2011 2:00 AM To: [email protected] Subject: Witango-Talk: Couldn't wait for the next version. ;) The @ISDATE bug was holding me up. So I replaced this: <@ISDATE VALUE="@@local$year-@@local$month-@@local$day"> With <@INCLUDE File=datetest,txt> Datetest,txt is: <@IF EXPR='<@VAR SCOPE=local NAME=month> > 12 OR <@VAR SCOPE=local NAME=month> <1'> 0 <@ELSEIF EXPR='<@VAR SCOPE=local NAME=day> >31 AND <@VAR SCOPE=local NAME=month> = 1'> 0 <@ELSEIF EXPR='<@VAR SCOPE=local NAME=day> >31 AND <@VAR SCOPE=local NAME=month> = 3'> 0 <@ELSEIF EXPR='<@VAR SCOPE=local NAME=day> >31 AND <@VAR SCOPE=local NAME=month> = 5'> 0 <@ELSEIF EXPR='<@VAR SCOPE=local NAME=day> >31 AND <@VAR SCOPE=local NAME=month> = 7'> 0 <@ELSEIF EXPR='<@VAR SCOPE=local NAME=day> >31 AND <@VAR SCOPE=local NAME=month> = 8'> 0 <@ELSEIF EXPR='<@VAR SCOPE=local NAME=day> >31 AND <@VAR SCOPE=local NAME=month> = 10'> 0 <@ELSEIF EXPR='<@VAR SCOPE=local NAME=day> >31 AND <@VAR SCOPE=local NAME=month> = 12'> 0 <@ELSEIF EXPR='<@VAR SCOPE=local NAME=day> >30 AND <@VAR SCOPE=local NAME=month> = 4'> 0 <@ELSEIF EXPR='<@VAR SCOPE=local NAME=day> >30 AND <@VAR SCOPE=local NAME=month> = 6'> 0 <@ELSEIF EXPR='<@VAR SCOPE=local NAME=day> >30 AND <@VAR SCOPE=local NAME=month> = 9'> 0 <@ELSEIF EXPR='<@VAR SCOPE=local NAME=day> >30 AND <@VAR SCOPE=local NAME=month> = 11'> 0 <@ELSEIF EXPR='<@VAR SCOPE=local NAME=day> >28 AND <@VAR SCOPE=local NAME=year>/4 != <@CALC EXPR="floor(<@VAR SCOPE=local NAME=year>/4)"> '> 0 <@ELSEIF EXPR='<@VAR SCOPE=local NAME=day> >29 AND <@VAR SCOPE=local NAME=year>/4 = <@CALC EXPR="floor(<@VAR SCOPE=local NAME=year>/4)"> '> 0 <@ELSE> 1 </@IF> ;) ---------------------------------------- To unsubscribe from this list, please send an email to [email protected] with "unsubscribe witango-talk" in the body. ---------------------------------------- To unsubscribe from this list, please send an email to [email protected] with "unsubscribe witango-talk" in the body.
