Please help me with this date time localization issue. I am trying to use
Java.Text.DateFormat to get the default date format for different locale in
the following.

dateFormatter = DateFormat.getDateInstance(DateFormat.SHORT, Locale.UK);
String formattedDateString = dateFormatter.format(new
Date(System.currentTimeMillis()));

When I am trying to format the date using en-GB locale for the date - July,
3rd, 2012

Android 2.2.x.-2.3.x result: 03/07/2012  (Correct)
Android 4.0.x result: 07/03/2012  (Wrong)

Apparently, It is working at Android platform 2.2.x to 2.3.x, but in
devices with 4.0.x (such as ASUS Eee Pad and Samsung Nexus 2), it does not
work anymore. Why is this behavior different between the API level? And how
can I get the default date format for specific locale from now on?

Thanks,

Edward

-- 
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

Reply via email to