shangrilla
Programmer
Hi:
I am trying to check that the date entered in a texbox is less than current date. I ensure that the date entered is valid using a compareValidator's dataTypeCheck property.
RangeValidator properties that I have set:
ControlToValidate = txtCheck
DataType = Date
In Page_load
rangeValidator1.MaxValue = Now.Date
rangeValidator1.MinValue = DateTime.MinValue.Date
I get an error saying MinValue 12:00:00 AM is not of type Date?????
Thanks
I am trying to check that the date entered in a texbox is less than current date. I ensure that the date entered is valid using a compareValidator's dataTypeCheck property.
RangeValidator properties that I have set:
ControlToValidate = txtCheck
DataType = Date
In Page_load
rangeValidator1.MaxValue = Now.Date
rangeValidator1.MinValue = DateTime.MinValue.Date
I get an error saying MinValue 12:00:00 AM is not of type Date?????
Thanks