The AskTOM team is taking a break over the holiday season, so we're not taking questions or responding to comments. Please have a happy and safe festive season and as always, thanks for being a member of the AskTOM community.
Thanks for the question, Girish.
Asked: March 11, 2019 - 6:40 am UTC
Last updated: March 11, 2019 - 10:52 am UTC
Version: 18c
Viewed 1000+ times
declare * ERROR at line 1: ORA-01861: literal does not match format string ORA-06512: at line 24
with val as ( select '2019-02-21T13:58:18.000+00:00' v from dual ) select to_date ( substr ( v, 1, 19 ) , 'FMYYYY-MM-DD"T"HH24:MI:SS' ) dt from val; DT 21-FEB-2019 13:58:18
with val as ( select '2019-02-21T13:58:18.000+00:00' v from dual ) select to_date ( v, 'FMYYYY-MM-DD"T"HH24:MI:SS.###+##:##' ) dt from val; DT 21-FEB-2019 13:58:18
New to good database design? Check out Chris Saxon's full fundamentals class.