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 Conversion Error

745409Jan 8 2010 — edited Jan 9 2010
Hi,


There are many invalid dates in my oracle source. So I am doing a TO_CHAR(DATE_FIELD,'MM-DD-YYYY') DATE_FIELD in my Sql.

Actaully, I have problem with the TO_CHAR function that I use in Oracle. For example when I do a To Char on ‘01-JAN-01’, it is pulling up as 00-00-0000.
TO_CHAR(DATE_FIELD,'MM-DD-YYYY')’ = 00-00-0000

Can anyone of you please help me with the valid function.

Thanks in advance
Amar
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 6 2010
Added on Jan 8 2010
8 comments
2,769 views