i try to format a date from XML file the date is in the format "Thu, 15
Mar 2012 00:00:00 +0200"
i use that code but get an error
SimpleDateFormat formatter = new SimpleDateFormat("E, dd MMM yyyy HH:mm:ss
Z");
Date date = formatter.parse("Thu, 15 Mar 2012 00:00:00 +0200");
SimpleDateFormat simpleDateFormat =new SimpleDateFormat("dd/MM/yyyy");
String dateAsString = simpleDateFormat.format(date);
java.text.ParseException: Unparseable date: "Thu, 15 Mar 2012 00:00:00
+0200"
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en