Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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"
TalendDate.parseDate("EEE MMM dd HH:mm:ss Z yyyy","Mon Nov 28 04:00:00 CST 2016")
TalendDate.parseDate("EEE MMM dd HH:mm:ss Z yyyy","Mon Nov 28 04:00:00 CST 2016")