I get an error:
Unparseable date: "Thu Aug 01 00:00:00 EEST 2019"
I tried following other examples on stackoverflow but it didn't work, so my question is not duplicate, I genuinely can't get it working. I don't understand why because my code looks like this:
try {
// "Thu Aug 01 00:00:00 EEST 2019"
String dateString = pageParameters.get("dtFrom").toString();
Date date = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy").parse(dateString);
System.out.println(date);
} catch (ParseException e) {
e.printStackTrace();
}