2
Answers

Masked Texbox Problem

Ask a question

Hi everybody,
I'm using a masked textbox for my Date like this : 01/12/2010
Now the problem is, when the user uses a date with a leading 0, the masked textbox gives this 11/22/010_
So it skipped the leading 0 althought it is correct in my database.
This is the code I use to fill the masked textbox :
mtbShipDate.Text =
Convert.ToString(dataRowData["ShipDate"]);
Please can somebody help me?
Thanks,
Tania

Answers (2)