Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Need Help decoding a to_date(ed) character field
I am trying to perform the following decode statement:
decode(POLICY.APP_DATE,'00000000',to_date('02291999','mmddyyyy'), to_date(substr(POLICY.APP_DATE,5,2),substr(POLICY.APP_DATE,7,2), substr(POLICY.APP_DATE,1,4)),'mmddyyyy')
but I keep getting an error message that says:
"ORA-01821: date format not recognized :-1821"
Can anyone tell me what is wrong with this? Received on Fri Jan 16 1998 - 00:00:00 CST
![]() |
![]() |