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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
talendtester
Creator III
Creator III

[resolved] Unparseable date Need Timezone help!

How do I get this to work? I am having troubles with the timezone part:
System.out.println(String.valueOf( TalendDate.formatDate("yyyy-MM-dd HH:mm:ss",
TalendDate.parseDate("ddd MMM DD HH24:mm:ss 000Z yyyy","Mon Nov 28 04:00:00 CST 2016"))));

Error:
java.lang.RuntimeException: java.text.ParseException: Unparseable date: "Mon Nov 28 04:00:00 CST 2016"

Labels (2)
1 Solution

Accepted Solutions
vapukov
Master II
Master II

TalendDate.parseDate("EEE MMM dd HH:mm:ss Z yyyy","Mon Nov 28 04:00:00 CST 2016") 

View solution in original post

2 Replies
vapukov
Master II
Master II

TalendDate.parseDate("EEE MMM dd HH:mm:ss Z yyyy","Mon Nov 28 04:00:00 CST 2016") 
talendtester
Creator III
Creator III
Author

Thanks vapukov! Works perfect.