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!

Convert string to date

User910243567Jan 23 2017 — edited Jan 23 2017

I am trying to convert below string to date and having issues.

select to_date('20170116','RRRR/MM/DD HH24:MI:SS') from dual;

Current Output:

16-JAN-17 00:00:00

I am expecting to see output in the format of ,  2017/01/16 00:00:00.

Can you please suggest.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 20 2017
Added on Jan 23 2017
8 comments
988 views