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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting Dates

Status
Not open for further replies.

godzawilla

IS-IT--Management
Jul 9, 2002
14
US
I have a date that is coming into access from an ODBC connection from an AS400 server. It comes into access in the following format. YYYYMMDD example 20021210 for yesterday. I need to format it to print out as follows:
MM/DD/YYYY. it is a text field. I attempted using some basic SQL to format the date but am having no luck. Any help would be greatly appreciated.
 
SELECT Left(txtDate,4)+"/"+Right(txtDate,2)+"/"Mid(txtDate,5,2)
FROM MyTable
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top