Click to See Complete Forum and Search --> : How to save date?


Blue Sky
March 14th, 2001, 06:11 PM
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

d.paulson
March 14th, 2001, 07:55 PM
How about this.
rs("birthDate")= cdate(txtBirth)


David Paulson

Blue Sky
March 14th, 2001, 10:29 PM
It doesn't work !!!
Error : Type Mismatch

amzas
March 14th, 2001, 10:35 PM
try this :

rs!bdate=format(maskedit1.text,"mm/dd/yyyy")

Blue Sky
March 15th, 2001, 05:58 AM
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 ?