0

how do i convert a string i got from an XML result into an oracle date (TO_DATE)

1980-10-05T23:30:00+08:00

Thanks

gigz
  • 942
  • 2
  • 9
  • 26

1 Answers1

1

Try like this,

select to_date(substr('1980-10-05T23:30:00+08:00', 1, 19), 'YYYY-MM-DD"T"HH24:MI:SS' ) from dual;
Dba
  • 6,511
  • 1
  • 24
  • 33