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

Converting to Oracle Date Format in an Expression

Status
Not open for further replies.

Bonediggler1

Technical User
Jul 2, 2008
156
US
Hi-

Not sure how to do this. I am trying to get the expression
DATEADD("D",-DAY(GETDATE()),GETDATE()) into Oracle format, i.e. "DD-MMM-YY".

This is for a variable by the way.

Thank you!!
 
Take a look at the CONVERT. Remember to return a VARCHAR or it will go right back to the SQL DATETIME format.

--------------------------------------------------
Bluto: What? Over? Did you say "over"? Nothing is over until we decide it is! Was it over when the Germans bombed Pearl Harbor? No!
Otter: Germans?
Boon: Forget it, he's rolling.
--------------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top