Skip to Main Content

SQL & PL/SQL

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!

changing date format

Gor_MahiaFeb 18 2015 — edited Feb 23 2015

Hi,

i have date data from DB coming in the format dd-mon-yyyy but i want convert this to mm/dd/yyyy in my query and display in the apex region using htp.p(.......)  ie. no option for apex report format,

i tried something like

select  to_date( to_char(created_date,  'dd-mon-yyyy'), 'mm/dd/yyyy') FROM emp where  rownum <= 2;   but i always get the error not a valid month....

( also i dont want to do this by altering DB session so ive to do it in the query only)

any idea is appreciated,

regards

This post has been answered by Gor_Mahia on Feb 22 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 23 2015
Added on Feb 18 2015
8 comments
1,730 views