Private Sub Command1_Click()
Dim TxtInput As String
TxtInput = Text1.Text
If Len(TxtInput) = 6 And Mid(TxtInput, 2, 1) = "/" And Mid(TxtInput, 4, 1) = "/" Then
Text2.Text = 0 & Mid(TxtInput, 1, 1) & "/" & 0 & Mid(TxtInput, 3, 1) & "/" & Mid(TxtInput, 5, 2)
End If
If Len(TxtInput) = 7 And Mid(TxtInput, 2, 1) <> "/" And Mid(TxtInput, 5, 1) = "/" Then
Text2.Text = Mid(TxtInput, 1, 2) & "/" & 0 & Mid(TxtInput, 4, 1) & "/" & Mid(TxtInput, 6, 2)
End If
If Len(TxtInput) = 7 And Mid(TxtInput, 2, 1) = "/" And Mid(TxtInput, 6, 1) <> "/" Then
Text2.Text = 0 & Mid(TxtInput, 1, 1) & "/" & Mid(TxtInput, 3, 2) & "/" & Mid(TxtInput, 6, 2)
End If
End Sub