Very simple task. I want to reformat a timestamp sent to me from a service with the format of Wed, 26 Jan 2011 22:27:09 +0000.
String format = "EEEE; MMMM d, yyyy";
String timestamp = "Wed, 26 Jan 2011 22:27:09 +0000";
Date date = new SimpleDateFormat(format).parse(timestamp);
Log.d("Test", date.toString());
I haven’t been able to find what formats .parse() method will allow but this one throws a ParseException.
Have you tried:
When I use that format to parse your test string, I get (in Central Time):