Thursday, August 18, 2011

[android-developers] date parsing

I'm using this code to try to parse a date:

Date myDate = DateFormat.getDateInstance().parse(s);

However, I get this:

java.text.ParseException: Unparseable date: Sun, 19 Jun 2011 02:28:34
-0500

Any ideas how I can easily parse a date in that format?

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment