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!

date format change

IshanMar 15 2012 — edited Mar 15 2012
Hi,

Here goes the requirement.

Is there any way where we can convert incoming date in the format '31-DEC-99' to the format as '31-DEC-9999'?

if i use TO_DATE('31-DEC-9999', 'DD-MON-RRRR') it results in '31-DEC-1999'.

My question is how do I choose the format so that the Year part of the date goes to 9999 and not 1999?

Please advice.
This post has been answered by sb92075 on Mar 15 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 12 2012
Added on Mar 15 2012
10 comments
4,783 views