Android Day of Week Get getReadableWeekDay(int day)

Here you can find the source of getReadableWeekDay(int day)

Description

get Readable Week Day

Declaration

public static String getReadableWeekDay(int day) 

Method Source Code

//package com.java2s;
import org.joda.time.DateTime;

public class Main {
    private static final String[] WEEKDAY = new String[] { "Monday",
            "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday",
            "Sunday", };

    public static String getReadableWeekDay(DateTime date) {
        return WEEKDAY[date.getDayOfWeek() - 1];
    }// w  w w  .  jav a2  s.co m

    public static String getReadableWeekDay(int day) {
        return WEEKDAY[day - 1];
    }
}

Related

  1. getDayOfWeek(String date)
  2. getDayOfWeek(Date date)
  3. getFirstDayOfWeek()
  4. getDayOfTheWeek(Date date)
  5. getDayOfWeekZeroIndexed(Date dateTime)
  6. getStringDayOfWeek(Date date)
  7. getDayOfWeek(String format, int calendarField)
  8. getDayOfWeek(String format, int calendarField)
  9. getFirstDayOfWeek(String format)