Date format: time being truncated
Posted: Wed Jul 04, 2018 10:33 am
Friends, I have the following problem:
SELECT TO_DATE(TO_CHAR(B.START_DATE,'DD-MM-YYYY HH24:MI:SS'),'DD-MM-YYYY HH24:MI:SS') START_DATE, FROM table1
Output:
23-06-2018 13:50:56
But when you insert it in the other table it does so as:
23-06-2018
Why?
SELECT TO_DATE(TO_CHAR(B.START_DATE,'DD-MM-YYYY HH24:MI:SS'),'DD-MM-YYYY HH24:MI:SS') START_DATE, FROM table1
Output:
23-06-2018 13:50:56
But when you insert it in the other table it does so as:
23-06-2018
Why?