Conversion of String to Teradata Timestamp Format
Posted: Thu Jan 11, 2007 4:07 am
Hi,
I am facing problem in Converting String to Timestamp.
The Job inserts into Teradata table which has a Date Column as
Cre_Dt TIMESTAMP(0) FORMAT 'YYYY-MM-DD HH:MI:SS'
and the Source file sends the Data in Format 'Mon Jan 08 00:00:00 EST 2007'.
In the transformer just before insertion into the table i need to convert it into the Format 'YYYY-MM-DD HH:MI:SS'
Linkname.Sourcecolumn[25,4]:Linkname.Sourcecolumn[5,15]
gives me '2007:Jan 08 00:00:00'
how to solve this problem?
Please help me
I am facing problem in Converting String to Timestamp.
The Job inserts into Teradata table which has a Date Column as
Cre_Dt TIMESTAMP(0) FORMAT 'YYYY-MM-DD HH:MI:SS'
and the Source file sends the Data in Format 'Mon Jan 08 00:00:00 EST 2007'.
In the transformer just before insertion into the table i need to convert it into the Format 'YYYY-MM-DD HH:MI:SS'
Linkname.Sourcecolumn[25,4]:Linkname.Sourcecolumn[5,15]
gives me '2007:Jan 08 00:00:00'
how to solve this problem?
Please help me