Dates w/ Masked Edit or VB6 TextBox
Posted on 1999-06-30
I need a simple way for the user to enter a date like "123199" and have the date convert to "12/31/99" or "12/31/1999".
My problem - I am trying to use the VB6 masked edit box and using the Date data format property as mm/dd/yy.
When running the app, I am required to enter the Julian date (i.e., 35,900) and then I will get the appropriate mm/dd/yy date.
Also - when I use the VB6 TextBox, which also has the DataFormat property, I set the property for mm/dd/yy, but when running the app, nothing appears to occur as a result.
For example, when I enter in the "123199" and tab out of the TextBox, the text remains "123199" when I expect the "12/31/99" format that I set up in the DataFormat property.