Hello,
I am trying to convert the following string literal to timestamp format.
SELECT TO_DATE('Jan 1 2013 12:00AM', 'Mon DD YYYY HH:MIAM' )
FROM DUAL;
However, this is producing [IBM][CLI Driver][DB2/LINUXX8664] SQL20447N Format string "MON DD YYYY HH:MIAM" is not valid for the "TO_DATE" function. SQLSTATE=22007
Any ideas how I can fix this?
Thanks
Zack
I am trying to convert the following string literal to timestamp format.
SELECT TO_DATE('Jan 1 2013 12:00AM', 'Mon DD YYYY HH:MIAM' )
FROM DUAL;
However, this is producing [IBM][CLI Driver][DB2/LINUXX8664] SQL20447N Format string "MON DD YYYY HH:MIAM" is not valid for the "TO_DATE" function. SQLSTATE=22007
Any ideas how I can fix this?
Thanks
Zack