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!

Need help on how to convert SYSDATE to JSON Date format

1567114Sep 11 2017 — edited Sep 12 2017

Hello,

I have a JSON Date value as:2017-08-27T14:54:34Z

I converted to oracle date format as below.(It worked)

SELECT CAST(TO_TIMESTAMP_TZ('2017-08-27T14:54:34Z', 'FXYYYY-MM-DD"T"HH24:MI:SS"Z"') AT LOCAL AS DATE)  FROM DUAL

However not sure of how to pass SYSDATE and convert into the like as above format 2017-08-27T14:54:34Z

This post has been answered by John Thorton on Sep 11 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 10 2017
Added on Sep 11 2017
5 comments
1,929 views