import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import java.util.Collections; import java.util.Locale; public class LocaleWeekTest { public static void main(String[] args) { Locale[] list = DateFormat.getAvailableLocales(); ArrayList aryLocale = new ArrayList(); for (int i = 0; i < list.length; i++) { aryLocale.add(list[i].toString()); } Collections.sort(aryLocale); Locale locale = null; String[] arrData = null; for (String data : aryLocale) { if (data.indexOf("_") > -1) { arrData = data.split("_"); locale = new Locale(arrData[0], arrData[1]); } else { locale = new Locale(data); } Calendar c = Calendar.getInstance(); for(int i = 0; i<12; i++){ SimpleDateFormat sdf = new SimpleDateFormat("E", locale); //SimpleDateFormat sdf = new SimpleDateFormat("EE", locale); //SimpleDateFormat sdf = new SimpleDateFormat("EEE", locale); //SimpleDateFormat sdf = new SimpleDateFormat("EEEE", locale); c.clear(); c.set(2000, i,1); java.util.Date d =c.getTime(); String week = sdf.format(d); if(week.length() < 2){ System.out.println(locale.toString() + "," + locale.getLanguage() + "," + locale.getDisplayLanguage() + "," + locale.getDisplayCountry() + "," + locale.getISO3Language() + "," + locale.getISO3Country() + "," + week + "(" + week.length()+ ")"); } } } Locale localeTest = new Locale("en", "US"); System.out.println(">>>>>>>>>" + localeTest.getDisplayName()); } }