Formating a Date as it is entered?

  • Thread starter Thread starter Russ
  • Start date Start date
R

Russ

Is there a way to convert a date that is entered like this 120403 to
12/04/03?

In a access database you can set it so when you enter the field you get
__/__/__ and as you fill in each space only takes 2 digits.

I am looking for that type of funtionality in a form I am designing. The
users are acustomed to not typing in dashes (-, /) into a date field so if I
can find a way to achieve this functionality that would be great.
 
I tried:

txtbox.Text = txtbox.Text.ToString("##/##/##");

It would not compile saying that their were invalid arguments.
 
Back
Top