I'm trying to create a date subtract two days and then convert it to a char. For some reason I'm getting the following error:
ORA-01830: date format picture ends before converting entire input string
Here's my code:
SELECT TO_CHAR(to_date('20-JUL-01 10:40:12')-2, 'dd-Mon-yy 24HH:MI:SS') as "Subtract 2 Days"
FROM DUAL;
I'm not sure what's wrong, it seems to be an issue with the seconds