I have a String:
Sun May 15 00:00:00 IST 2011
Now if I want to parse it into joda DateTime by the pattern:
EEE MMM dd 00:00:00 z yyyy
I am getting:
java.lang.IllegalArgumentException: Invalid format: "Sun May 15 00:00:00 IST 2011" is malformed at " 00:00:00 IST 2011"
But the SimpleDateFormat with the same pattern can parse that String to java.util.Date. What I am doing wrong?
Thanks and Regards.
JODA does not support parsing of time zone names.
From the API documentation:
Zone names: Time zone names (‘z’) cannot be parsed.