How i get days of week (SUNDAY, MONDAY, TUESDAY etc.) as short format(SUN,MON,TUE etc.) for system locale in Android?
String mondayshort --> output:"MON"(for English) or "LUN"(for French)
String tuesdatshort --> output:"TUE"(for English) or "MAR"(for French)
String wednesdayshort --> output:"WED"(for English) or "MER"(for French)
To format a specific date (not necessarily the current date), use EEE
in a SimpleDateFormat
. If you want all the short days of the week, you could use
DateFormatSymbols symbols = new DateFormatSymbols(locale);
String[] shortDays = symbols.getShortWeekdays();
See more on this question at Stackoverflow