Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Using TO_DATE function

$
0
0
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

Viewing all articles
Browse latest Browse all 13329

Trending Articles