|
-
Aug 3rd, 2007, 01:24 AM
#4
Re: Save the date & time
 Originally Posted by pons
assuming that you are using an update query to perform this
Code:
strDate=Format(dtDate.value,"dd-MMM-yyyy" )
strTime = dttime.value
"update table set datetimecolumn = '"& strDate & " " & strTime &"' where " 'conditions here
OR
you can set the property of the datetime picker control
to opt for
format as 3 -dtpCustom
and change the custom format text as dd-MMM-yyyy hh:mm:ss tt
now you can have the date time in a same control
The query would depend on the database, and the data type of destination field.
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
|