-
How to save date?
I have a field which is used to store the date of birth of the user.
It looks like "__/__/___"(dd/mm/yyyy) in the form. I used masked edit to do that.
In the database I define the date of birth as type of datetime.
How can I save the date ?
i.e. rs("birthDate")=txtBirth ---> It doesn't work. Error generated
Thx
-
Re: How to save date?
How about this.
rs("birthDate")= cdate(txtBirth)
David Paulson
-
Re: How to save date?
It doesn't work !!!
Error : Type Mismatch
-
Re: How to save date?
try this :
rs!bdate=format(maskedit1.text,"mm/dd/yyyy")
-
Re: How to save date?
I've tried, but error generated : It said "Overflow " why?
How to solve this ?
Also , I would like to know how can I write a Insert statement for inserting a null date into the table ?