Is there any way I can get days of week as 2 letter?
Ex: Su, Mo, Tu, We ....
I tried Java DateFormatSymbols and it gives 3 letter short names for days.
DateFormatSymbols symbols = new DateFormatSymbols(this.locale);
symbols.getShortWeekdays();
Also I tried using Calender class as below;
Calendar cal = Calendar.getInstance();
DateFormat dayFormat = new SimpleDateFormat("EE", this.locale);
for (int i = 0; i < 7; i++) {
cal.set(Calendar.DAY_OF_WEEK, i);
System.out.println(dayFormat.format(cal.getTime()));
}
But it always give 3 letter days. I couldn't use substring since it will depend on the locale.