Page 1 of 1

String to Timestamp Conversion Error

Posted: Wed Jul 18, 2012 7:07 am
by atulgoel
Hi,

Please tell me how to convert below string to TimeStamp format.

2012/06/04 03:10:23 AM

I am reading the above value from sequential file as Varchar, and wanted to write into Oracle table as Timestamp.

Please tell me what format should I specify in StringToTimeStamp() Function.

Thanks In Advance.

Posted: Wed Jul 18, 2012 7:18 am
by ArndW
StringToTimestamp(In.Col,"%yyyy/%mm/%dd %HH:%nn:%ss %aa")

Posted: Wed Jul 18, 2012 7:44 am
by atulgoel
Thanks. Its working fine. :)