Need help with rangevalidator

jdruwe's Avatar
Newbie Member
Hey i am using a rangevalidator in my program but i have a problem with the maximumvalue option of a rangevalidator. The minimum must be the day of today thats easy to
program but te maximumvalue has to be 1 year later the today. i dont know how i can program this .

Thanks in advance
bzforum's Avatar, Join Date: May 2012
Go4Expert Member
I know its too late..but im sure this may help someone else who would be searching for this solution...

PHP Code:
        RangeValidator1.MinimumValue DateTime.Now.ToShortDateString();
RangeValidator1.MaximumValue DateTime.Now.AddYears(1).ToShortDateString(); 
shabbir like this