String to timestamp conversion
Posted: Wed Dec 28, 2005 11:10 am
Hi,
I am using the StringToTimestamp function in the transformer.
I am reading a char field 26 length(no scale) trying to convert into a timestamp.
But the problem is
for example:
Input : 2005-10-14-19:45:22.666666 CHAR(26)
Even after using this format timestamp_from_string(timestamp,"%yyyy-%mm-%dd%hh:%nn:%ss.6")
Output : 2005-10-14 19:45:22 Timestamp(26)
How should I get the microsecond fields.
Thanks
I am using the StringToTimestamp function in the transformer.
I am reading a char field 26 length(no scale) trying to convert into a timestamp.
But the problem is
for example:
Input : 2005-10-14-19:45:22.666666 CHAR(26)
Even after using this format timestamp_from_string(timestamp,"%yyyy-%mm-%dd%hh:%nn:%ss.6")
Output : 2005-10-14 19:45:22 Timestamp(26)
How should I get the microsecond fields.
Thanks