Yes right...But the source file has the data as mentioned above. Where "DD" is coming as 1 and not "01".
And thats where am seeing the problem that my code is not working.
Code sample:
cast(cast(substr(cast(CREATED as char(9),1,7)||'20'||substr(cast(CREATED as char(9)),8,100) as date format 'dd-mmm-yyyy') as date format 'YYYY-MM-DD')
↧