I am using Simple XML for XML serialization in my Android project. I have problem with parsing a Date object. I receive an exception:
Unparseable date: 2012-05-01T08:22:34+02:00
Can anyone help me how to tell Simple XML what the date format is? Thanks.
You have a timezone at the end of your date. Java can parse timezone offsets, but without the ´:’ divider between. So if your date timezone were +0200 instead of +02:00, it should work. You could run it through a SimpleDateFormatter.