I have simple code, it still throws me unparseable date exception. I’m confused, the pattern seems to be correct.
DateFormat dffrom = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy");
dffrom.parse("Sun Jan 20 00:50:24 CET 2013");
I tried also these patterns:
"EEE MMM dd HH:mm:ss z yyyy"
"EEE MMM dd HH:mm:ss z YYYY"
"EEE MMM dd HH:mm:ss zzz YYYY"
Your default
Localemay not recognize the words “Sun” and/or “Jan”. Try withENGLISHLocale:To view your default
Localeyou can use:See: Locale