string to timestamp converstion

One Star

string to timestamp converstion

hi all,

i have a string "yyyy-mm-dd HH:mm:ss" for example "2011-04-23 17:23:26". how do i convert this string to timestamp using talend?
Any pointers would be of great help.
Community Manager

Re: string to timestamp converstion

Hi
Using the build-in system routine, TalendDate.parseDate(string pattern, Sting stringdate), for example:
TalendDate.parseDate("yyyy-MM-dd HH:mm:ss", "2011-04-23 17:23:26")
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business