Home
Analytics
date is not validating properly
donleblanc
Hi,
I'm trying to validate in the format of 'yyyy-MM-dd'.
It's validating ok if I put letters instead of numbers.
But the problem is if I put '2007-20-01'
There will be no validation error and BIRT changes the date to '2008-08-01'
BIRT thinks I want 20 months so he substract 12 from 20 and put 1 extra year.
I want to validate on up to 12 months and if higher then trow an error like BIRT throws when you put letters instead of numbers.
Thank You all for your suggestions in advance.
Donald
Find more posts tagged with
Comments
mwilliams
Hi Donleblanc,
You should be able to solve this problem by going into the data parameter's validation script and writing your own validation code for the date parameter. You can get the parameter value with params["parameterName"].value.
Regards,
Michael