All the more a reason for me to switch to android.text.format, because that
one DOES have those strings in several languages - but I can't see a
replacement for SimpleDateFormat.parse(). Is there no way other than writing
my own parser?

On May 29, 2009 1:37 PM, "Urs Grob" <grob....@gmail.com> wrote:


I think this is because many locales are not included in the cupcake
release due to size issues. (even less were included in the 1.0 and
1.1 releases)

Locales.getAvailableLocales() should return all locales that are
supported. The goal will be to include all the locales ICU has to
offer. But this is a mid term goal because of the already mentioned
size issues. If you try to format a date with a locale that's not
available I think it'll just return the number as a fallback. The same
should apply to weekday names.

-- Urs

On Fri, May 29, 2009 at 5:54 PM, EboMike <ebom...@gmail.com> wrote:
>
> 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