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!

ORA-01821 : date format not recognized

2783106May 8 2018 — edited May 8 2018

Hi ,

I am running below in the sqlplus , but getting below error.

SQL> select TO_CHAR(SYSDATE,'YYYY-MM-DD"T"HH24:MI:SS.FF9tzh:tzm') from dual;

select TO_CHAR(SYSDATE,'YYYY-MM-DD"T"HH24:MI:SS.FF9tzh:tzm') from dual

                       *

ERROR at line 1:

ORA-01821: date format not recognized

I need output like : 2017-08-16T16:08:00.000Z

can anyone suggest the changes i need to do for the DUAL statement.

This post has been answered by EdStevens on May 8 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 5 2018
Added on May 8 2018
6 comments
2,450 views