Java Week Day getWeekdayNames()

Here you can find the source of getWeekdayNames()

Description

get Weekday Names

License

Open Source License

Declaration

public static String[] getWeekdayNames() 

Method Source Code

//package com.java2s;
/**//from  w  w w.ja  va2 s. com
 * Copyright (C) 2013 CLXY Studio.
 * This content is released under the (Link Goes Here) MIT License.
 * http://en.wikipedia.org/wiki/MIT_License
 */

import java.text.DateFormatSymbols;

import java.util.Arrays;

import java.util.Locale;

public class Main {
    public static String[] getWeekdayNames() {
        DateFormatSymbols symbols = new DateFormatSymbols(Locale.getDefault());
        // String[] dayNames = symbols.getShortWeekdays();
        String[] dayNames = symbols.getWeekdays();
        return Arrays.copyOfRange(dayNames, 1, 7);
    }
}

Related

  1. getWeekDay(String str)
  2. getWeekDayByDate(Date date)
  3. getWeekDayCN()
  4. getWeekdayForInt(int value)
  5. getWeekdayName(Date date)
  6. getWeekdayNames(Locale locale)
  7. getWeekDayNUM()
  8. getWeekdayOfDateTime(String datetime)
  9. getWeekdays(DateFormatSymbols symbols)