I need to parse a date using a flexible date format (like "MM/dd/yyyy"
or "dd-MMM"), and so far I've always used SimpleDateFormat for that
(since unfortunately, android.text.format.Time.parse doesn't support
date format strings). This works fine in an US environment, but as
soon as I switch to any other locale, MMM translates into the number
of the month (i.e. it's "6" instead of "Jun"). This seems like a
problem that's new to Cupcake, although I'm not sure.

Is there any way to parse date strings in another locale other than
writing my own parser? android.text.format.DateFormat.format is great
for converting from date to string, but I can't find anything going
the other way around.

-Mike


--~--~---------~--~----~------------~-------~--~----~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to