Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

change DATE format to DD/MMM/YYYY

sk88Feb 22 2015 — edited Feb 22 2015

I have created a table with a field Register_Date in DATE format. However, it results showed me 21/12/2008

I would like to change it to 21/Dec/2008

How do I change that using SQL command? I tried to Google and used codes like below and it will not work

SELECT CONVERT( CHAR(6), Register_Date, 106 )
FROM REG

The error message was ORA-00936: missing expression

I also tried:

SELECT replace(convert(char(15),Register_Date,106),' ',' - ')
FROM REG

and it gives it the same error message.

Any suggestions?

Thanks

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 22 2015
Added on Feb 22 2015
6 comments
13,504 views