Changing text box value

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
 
L

Lucas Tam

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,007
Latest member
obedient dusk

Latest Threads

Top