Issuing the following SQL:
SELECT CHAR(CURRENT DATE,ISO)
,CHAR(CURRENT DATE,USA)
,CHAR(CURRENT DATE,EUR)
,CHAR(CURRENT DATE,JIS)
FROM SYSIBM.SYSDUMMY1
returns:
COL1 COL2 COL3 COL4
---------- ---------- ---------- ----------
2002-12-30 12/30/2002 30.12.2002 2002-12-30
Main Topics
Browse All Topics





by: mglxxxPosted on 2003-02-05 at 00:30:26ID: 7881084
There is no format function in DB2 which behaves
like Oracle's to_char. You'll have to use
the 'day, month, year' way.