TO_DATE function time zone parse error

前端 未结 1 498
独厮守ぢ
独厮守ぢ 2021-01-19 11:27

I have a problem when trying to parse a date in Oracle:

TO_DATE(\'Fri May 16 14:30:57 EDT 2014\', \'DY MON DD HH24:MI:SS TZD YYYY\')

相关标签:
1条回答
  • 2021-01-19 12:32

    This one works:

    select TO_TIMESTAMP_TZ('May 16 14:30;57 EDT 2014', 'MON DD HH24:MI:SS TZD YYYY')
    from dual;
    
    0 讨论(0)
提交回复
热议问题