Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to display the name of Day Of Week in Arabic?

Mahmoud Hadad
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi evreyone,
guys i have this problem, when i try to use the method calendarObj.getDisplayName(calendarObj.get(Calendar.DAY_OF_WEEK), Calendar.LONG, new Locale("ar"));
this does return null. the method implementation is said to have localized names for Calendar fields that DateFormatSymbols API have. anyway when i have run the following code:
DateFormatSymbols dfsObj = DateFormatSymbols.getInstance(new Locale("ar"));
String[] days = dfsobj.getWeekDays();
when i printed out the contents of the days array, i have seen the day names in arabic. so how come the Calendar method returns null and the DateFormatSymbols API return the names in arabic?
[ October 17, 2006: Message edited by: Mahmoud Hadad ]
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic