Changing text box value

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

I have users entering dates in a text box. Is there any way I can change the
year to two digits (like 1/1/05) if they enter only one digit (like 1/1/5)?

Thanks

Regards
 
Hi

I have users entering dates in a text box. Is there any way I can
change the year to two digits (like 1/1/05) if they enter only one
digit (like 1/1/5)?


If you want the change to occur before postback, you'll have to use
Javascript.

Otherwise you can just do it in code... but you'll need to do a lot of text
parsing.
 
Back
Top