The code below shows hot to get the name of day.

Java Code:
public class GetDayName {

    public static void main(String[] args) {
      String dayNames[] = new DateFormatSymbols().getWeekdays();
      Calendar date2 = Calendar.getInstance();
      System.out.println("Today is a " 
        + dayNames[date2.get(Calendar.DAY_OF_WEEK)]);
    }
}