Problem with format
Hi
I am have the following problem with format. Can anyone help?
Here is I want to accomplish.
DOB = "0507590635"
txt2.Text = Format(DOB, "######" & "-" & "####")
It should be like this
txt2.Text ="050759-0635"
But the result is wrong.It gives
txt2.Text = "50759-0635"
The leading zero disapear.
Any ideas or a different solution.
Thanks in advance
Karsten
|