Now im doing the project i VB6.0. In that i want to insert the date field into database. In that, if the person enter his Date of birth in a text box in the format of "MM/DD/YYYY" then that field is to be inserted into the database. Now I have the doubt is, if the person enters the Date of birth is not a proper fomat then the message should be like that is "Enter the proper format of Date".So kindly reply me with the code.
Codings help?
Collapse
X
-
Tags: None
-
Originally posted by sreekandanNow im doing the project i VB6.0. In that i want to insert the date field into database. In that, if the person enter his Date of birth in a text box in the format of "MM/DD/YYYY" then that field is to be inserted into the database. Now I have the doubt is, if the person enters the Date of birth is not a proper fomat then the message should be like that is "Enter the proper format of Date".So kindly reply me with the code.
use datetimepicker control or
at the top of the date Tesxtbox use one lable with the date format or
use Format(txtDateV alue.Text,"MM/dd/yyyy")
Comment