Posted By
JAMES CAMPBELL
Mon December 23, 2019 09:21 AM
Found In
Egroup:
Db2
\
view thread
date(substr(abcd,1,4)||'-'||substr(abcd,5,2)||'-'||substr(abcd,7,2)) https://www.ibm.com/support/knowledgecenter/SSEPGG_11.1.0/com.ibm.db2.luw.sql.ref.doc/doc/r0000784.html Note that the hyphens say that the date string is in ISO format. Other formats are USA with slashes - mm/dd/yyyy - and EUR with ...
|