|
-
March 14th, 2001, 07:11 PM
#1
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
-
March 14th, 2001, 08:55 PM
#2
Re: How to save date?
How about this.
rs("birthDate")= cdate(txtBirth)
David Paulson
-
March 14th, 2001, 11:29 PM
#3
Re: How to save date?
It doesn't work !!!
Error : Type Mismatch
-
March 14th, 2001, 11:35 PM
#4
Re: How to save date?
try this :
rs!bdate=format(maskedit1.text,"mm/dd/yyyy")
-
March 15th, 2001, 06:58 AM
#5
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 ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|