A previous question of mine helped format a date column as DATE(CHAR(DIGITS(DAY) || '/' || DIGITS(MONTH) || '/' || DIGITS(CENTURY) || DIGITS(YEAR))).
The column output is great. However when I go to reate a where filter and such as DATE(CHAR(DIGITS(DAY) || '/' || DIGITS(MONTH) || '/' || DIGITS(CENTURY) || DIGITS(YEAR))) = '04/07/2008' or '2008-04-07' I get the following error:
[IBM]{iSeries Access ODBC Driver][DB2 UDB]SQL0181 - Value in date, time, or timestamp string is not valid.
Thanks,
John
Start Free Trial