I need to insert a date format from an external source, which includes a three-letter code for the time zone, but the TZD format mask does not work ...
insert into blah
values (to_date('Thu, 18 Feb 2010 08:37:00 EST','Dy, DD Mon YYYY HH24:MI:SS TZD'));
ORA-01821: date format not recognized
If I remove the "TZD" ...
insert into blah
values (to_date('Thu, 18 Feb 2010 08:37:00','Dy, DD Mon YYYY HH24:MI:SS'));
1 row created.
What is the proper mask for such an insert statement in Oracle?
desc blah
Name Null? Type
----------------------------------------- -------- ----------------------------
D DATE
Edit: I changed the table column from type DATE to type TIMESTAMP and got the same error.
source
share