date format check

  • Thread starter Thread starter Ricardo Silveira
  • Start date Start date
R

Ricardo Silveira

I'm validating a text box using a Compare Validator Component with the
folowing properties:
Operator = DataTypeCheck
Type= Date

But the web application is validating an english format date (mm/dd/yyyy)
and I need to validate in a portuguese format (dd/mm/yyyy).

Any sugestion how to change the date format check?

Thanks

Ricardo.
 
before validating the inputed data set the culture info for the current
thread to be your
Thread.CurrentThread.CurrentCulture = new
System.Globalization.CultureInfo("pt")

Regards
Martin
 
Back
Top