I accomplished this by doing the following:
String weekDay;
SimpleDateFormat dayFormat = new SimpleDateFormat("EEEE", Locale.US);
Calendar calendar = Calendar.getInstance();
weekDay = dayFormat.format(calendar.getTime());
- Use the day format for "EEEE" will return the full weekday name, i.e. Tuesday
- Use the day format for "E" will return the the abbreviated name, i.e. Tue
- Another benefit to returning this format in Android is that it will translate the weekday based on the locale.
You will want to review the SimpleDateFormat to learn more. I think this is the cleanest approach in that you do not need a switch or if statement if your only need is to get the string value.