J
Johannes Hammersen
Hi,
when I try to set the Minimum Date on a RangeValidator to 01.01.0001 I get
an error, that 01.01.0001 can not be converted to a date.
But the DateType can be 01.01.0001. Convert.ToDateTime("01.01.0001") works.
So why can't I set the Minimum of the RangeValidator to that Date?
I have the same Problem with the Maximun Value. If I try to set that let's
say to the 31th December 9999 it will give me an error.
You can reproduce this error if you put an RangeValidator on a WebForm, set
it's type to Date an put 01.01.0001 as minimum value.
What am I doing wrong? Or is this a bug, and if yes does anyone know a
workaround?
Thanks for any help
Johannes Hammersen
when I try to set the Minimum Date on a RangeValidator to 01.01.0001 I get
an error, that 01.01.0001 can not be converted to a date.
But the DateType can be 01.01.0001. Convert.ToDateTime("01.01.0001") works.
So why can't I set the Minimum of the RangeValidator to that Date?
I have the same Problem with the Maximun Value. If I try to set that let's
say to the 31th December 9999 it will give me an error.
You can reproduce this error if you put an RangeValidator on a WebForm, set
it's type to Date an put 01.01.0001 as minimum value.
What am I doing wrong? Or is this a bug, and if yes does anyone know a
workaround?
Thanks for any help
Johannes Hammersen