Can, in any form, TO_DATE
function return a TIMESTAMP
? Example:
I have the following input: '2019-05-31 13:15:25.000000000'
I want to have '2019-05-31 13:15:25'
as a result using TO_DATE
and not TO_TIMESTAMP
.
I tried:
select to_date(substr('2019-05-31 13:15:25.000000000', 1, 19), 'YYYY-MM-DD HH24:MI:SS') from dual;
But it returns:
31/05/2019