Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

coverting from odbc date to string 1

Status
Not open for further replies.

leadman

Programmer
Jun 11, 2001
177
0
0
US
Hi all,

I am saving a date/time object in my database using createODBCDateTime. When I retrieve the date I want to display it like this: Saturday June 1, 2002 2:25PM

How do get this from the ODBC date?
 
You need to use the DateFormat and TimeFormat functions.

So you code would look something like this:

#DateFormat(yourodbcDate, "dddd mmmm d yyyy")#
#TimeFormat(yourodbcDate, "h:mmtt")#

hope this helps !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top