Could you please help me in converting date from the format \"20120101\" to DATE format in Orcle Sql.
I looked at this link but it does not mention if the date format is
to_date('20120101','YYYYMMDD')
should be fine...
If you have a string '20120101' that you want to convert into a date, assuming that the string contains a 4 digit year followed by a 2 digit month and a 2 digit day
to_date( '20120101', 'YYYYMMDD' )
You cans specify the format:
to_date('20120101', 'yyyymmdd')
SELECT to_date('20120101','YYYYMMDD') FROM dual;