I'm new with Visual Basic and I guess I need all the help I can get. I have this simple code to format the user entry into a date format (mm/yy/dd).
<code>
Private Sub dob_LostFocus()
Dim b As Date
b = dob.Text
dob.Text = Format(b, "m/d/yy"
End Sub
</code>
it does format the text entry but it shows the wrong date.
ie. user entry: 030285 format: 12/10/92
Any help will be greatly appreciated. I also need recommendation on a good VB book.
<code>
Private Sub dob_LostFocus()
Dim b As Date
b = dob.Text
dob.Text = Format(b, "m/d/yy"
End Sub
</code>
it does format the text entry but it shows the wrong date.
ie. user entry: 030285 format: 12/10/92
Any help will be greatly appreciated. I also need recommendation on a good VB book.