I am trying to convert the date from YYYYMMDD to DD-Mon-YYYY in Oracle, but to_char
or to_Date
is not working. Can you please advise?
select to_date(20150324,'DD-Mon-YY') from dual;
select to_char(20150324,'DD-Mon-YY') from dual;
I get an error message saying: - ORA-01861: literal does not match format string