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

HOW DO I ALTER THE DATE FORMAT??

Status
Not open for further replies.

JONBOY74

Technical User
Sep 11, 2001
36
US
Hi All

I've got a table that contains a field which has dates in it. What I need is for those dates to been shown like YYYYMMDD (20010601) and not 06/01/01. The data comes from an Oracle database. How can I turn the inserted dates into the format I require.

Thanks

Jon
 
Hi Jon,

Try something like:
UPDATE Table1 SET Table1.Field3 = Year([field2]) & Month([field2]) & Day([field2]);

Where field3 is your Date field, and Field2 is your new Text field.

Nick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top