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

Format yyyy.mm.dd hh:mm:ss to ddmmmyyyy:hh:mm:ss - response (1) by KS42982

$
0
0
Not sure if you really want, ':' between DATE and TIME, but if you do not then you can try below - SELECT CAST(UR_TIMESTAMP_FIELD AS TIMESTAMP FORMAT 'ddmmmyyyyhhmiss') (Instead of hhmmss - you should try hhmiss) If you really want ':' between your DATE and TIME, then you have to do CAST it as CHAR or VARCHAR and then SUBSTR DATE and TIME and concatenate (||) them by putting ':' in between.    

Viewing all articles
Browse latest Browse all 27759

Trending Articles



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