Convert a string date into datetime in Oracle

前端 未结 3 1307
独厮守ぢ
独厮守ぢ 2020-12-01 10:56

How can I convert this string date to datetime in oracle.

2011-07-28T23:54:14Z

Using this code throws an error:

TO_DATE(\'2         


        
3条回答
  •  -上瘾入骨i
    2020-12-01 11:18

    You can use a cast to char to see the date results

     select to_char(to_date('17-MAR-17 06.04.54','dd-MON-yy hh24:mi:ss'), 'mm/dd/yyyy hh24:mi:ss') from dual;

提交回复
热议问题