Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Range Validator problem with dates

Status
Not open for further replies.

shangrilla

Programmer
Nov 21, 2001
360
US
I am using a RangeValidator control to validate if a Date is greater than today's date.

RangeValidator1.MaximumValue = Now.Date
RangeValidator1.MinimumValue = Now.AddYears(-150).Date

It accepts all values > 2000 as 02/02/00 or 02/02/2000
, but doesn't accept 02/02/99. I have to enter 02/02/1999

Any ideas on how to fix this.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top