Skip to content
Advertisement

Parser Exception for format EEEE, MMMM d, YYYY h:mm:ss a z

I’m getting parser exception on trying to parse string value:

JavaScript

To format:

JavaScript

This is the program sample:

JavaScript

And this is the error message:

JavaScript

this is my sample program

JavaScript

Advertisement

Answer

From the JodaTime docs:

Zone names: Time zone names (‘z’) cannot be parsed.

However SimpleDateFormat does support parsing of timezones.

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement