I just want to format current date into yyyymmdd in DB2.
yyyymmdd
I see the date formats available, but how can I use them?
http://publib.boulder.ibm.com
Current date is in yyyy-mm-dd format. You can convert it into yyyymmdd format using substring function:
yyyy-mm-dd
substring
select substr(current date,1,4)||substr(current date,6,2)||substr(currentdate,9,2)