Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

String to Date Conversion

I have a string like "20111212120110" (string format) . 

My task is to convert it into date format like 2011/12/12/ 12:01:10 (date datatype) in Talend

I tried inside tMap ,

TalendDate.parseDate("MM/dd/yyyy hh:mm:ss",row1.Date)... but showing error .

 

where ---> row1.Date = "20111212120110"

 

Regards 

Subhadeep

Labels (2)
1 Solution

Accepted Solutions
vapukov
Master II
Master II

parseDate - convert String to Date, so and format must be not for output date (it will always the same), but format for string

 

in your case "yyyyddMMHHmmss" or similar because from your sample date not very clean - where months and where days

View solution in original post

1 Reply
vapukov
Master II
Master II

parseDate - convert String to Date, so and format must be not for output date (it will always the same), but format for string

 

in your case "yyyyddMMHHmmss" or similar because from your sample date not very clean - where months and where days