string to timestamp
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 86
- Joined: Wed Mar 03, 2010 3:09 am
string to timestamp
hi,
my input column:doc_guid
datatype :varchar
I want to insert this value into target
StringToTimestamp(lk_read.sheet,"yyyy-mm-dd hh:nn:ss")
i want to implement this in transformer.
I am getting below error
APT_CombinedOperatorController,0: Caught exception from runLocally(): APT_ParseError: Parsing parameters "yyyy-%mm-%dd hh:nn:ss" for conversion "timestamp=timestamp_from_ustring[%yyyy-%mm-%dd %hh:%nn:%ss](ustring)": APT_Conversion_String_TimeStamp: Invalid format [yyyy-%mm-%dd hh:nn:ss] used for string_from_time type conversion.
So can anyone please help me on this
Thanks in advace
my input column:doc_guid
datatype :varchar
I want to insert this value into target
StringToTimestamp(lk_read.sheet,"yyyy-mm-dd hh:nn:ss")
i want to implement this in transformer.
I am getting below error
APT_CombinedOperatorController,0: Caught exception from runLocally(): APT_ParseError: Parsing parameters "yyyy-%mm-%dd hh:nn:ss" for conversion "timestamp=timestamp_from_ustring[%yyyy-%mm-%dd %hh:%nn:%ss](ustring)": APT_Conversion_String_TimeStamp: Invalid format [yyyy-%mm-%dd hh:nn:ss] used for string_from_time type conversion.
So can anyone please help me on this
Thanks in advace
-
- Participant
- Posts: 3337
- Joined: Mon Jan 17, 2005 4:49 am
- Location: United Kingdom
The format must be
Code: Select all
%yyyy-%mm-%dd %hh:%nn:%ss
-
- Participant
- Posts: 3337
- Joined: Mon Jan 17, 2005 4:49 am
- Location: United Kingdom
The format must be
Code: Select all
%yyyy-%mm-%dd %hh:%nn:%ss
-
- Participant
- Posts: 3337
- Joined: Mon Jan 17, 2005 4:49 am
- Location: United Kingdom
The format must be
Code: Select all
%yyyy-%mm-%dd %hh:%nn:%ss
-
- Participant
- Posts: 86
- Joined: Wed Mar 03, 2010 3:09 am
thanks for your replySainath.Srinivasan wrote:The format must be
Code: Select all
%yyyy-%mm-%dd %hh:%nn:%ss
i have given like this
StringToTimestamp(lk_read.sheet,"yyyy-mm-dd hh:nn:ss")
i was tried with this %yyyy-%mm-%dd %hh:%nn:%ss,but its not accepting.so please sugget me how to do this
thanks in advance for your help.
-
- Participant
- Posts: 3337
- Joined: Mon Jan 17, 2005 4:49 am
- Location: United Kingdom