Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

Date Conversion - response (2) by Malleshkr

$
0
0
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')

Viewing all articles
Browse latest Browse all 27759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>