I want to format the date in Arabic, but it does not work on my Galaxy Tab2, also does not work on Galaxy Note and gives me two different results.
Here is my code:
DateFormat format = new SimpleDateFormat("EEEE yyyy/MM/dd", new Locale(
"ar"));
String formatedDate = format.format(Calendar.getInstance().getTime());
Please note that when I check for supported locales, I find that Android 4.0 on my Galaxy Tab2 does. But I did not find Arab places.
Locale[] supportedLocales = Locale.getAvailableLocales();
Is there any solution to solve this problem or any library that I can use to do this?
Note:
On Roomed Android version (Android 4.1) from CyanogenMod, it works very well and supports Arabic locales.
source
share