Oracle to_date function. Mask needed

后端 未结 2 552
感情败类
感情败类 2021-01-18 13:54

I have string of date from xml file of such kind: \'2010-09-09T22:33:44.OZ\'

I need to extract only date and time. I want to ignore symbol T and .OZ (time zone). Whi

2条回答
  •  深忆病人
    2021-01-18 14:10

    select TO_DATE('2010-09-09T22:33:44.OZ'
                  ,'YYYY-MM-DD"T"HH24:MI:SS".OZ"')
    from dual;
    
    9/09/2010 10:33:44 PM
    

提交回复
热议问题