We have a below query like
SELECT TO_DATE(CREATED_DATE_IN_CHAR,'MON-DD') FROM TABLE1
Data in the columns are in the same format of MON-DD.
on executing the above query we are getting ORA-01839: date not valid for month specified. On further analysis we found that created_date_in_char is having a value like 'FEB-29'. So oracle is trying to convert to the 'FEB-29' to '29-FEB-17' (current year is 2017) which is not a valid date in the year 2017.
Is it possible to make to_date function take a leap year for date conversion instead of current year (2017).
We are stuck here .Any help or suggestion is appreciated.