Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Need Help decoding a to_date(ed) character field

Need Help decoding a to_date(ed) character field

From: Zook <zook_at_web.com>
Date: 1998/01/16
Message-ID: <34bf6ea4.2889824@news.insync.net>#1/1

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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US