change date format

Mike Hughes

Registered User.
Local time
Today, 12:10
Joined
Mar 23, 2002
Messages
493
I'm running a query against a Oracle DB. There is a field in the DB which is called BATCH and the field content is displayed in a date format, MM/DD/YYYY.
What I want to know is there a way, when running my query to convert the MM/DD/YYYY (example 1/24/2011) to MMDDYYYY (example 01242011) ?

Thanks for the help. Mike
 
You could try Format


Consider a field MyDate = #7/14/2011#

NewFormat = Format(myDate,"MMDDYYYY")
 
Nope didn't work. Thanks for the suggestion
 
Nope didn't work. Thanks for the suggestion

When you say, "nope didn't work" what does that really mean? What happened? Did it explode? Did it throw a brick through your window? :D

But seriously, we need more information than "didn't work." We can't see what you see and so you have to describe to us what it is that happened when you used the suggestion. And how did you actually implement the suggestion? What was the SQL of the query?
 

Users who are viewing this thread

Back
Top Bottom