Android Month String Get getShortMonths()

Here you can find the source of getShortMonths()

Description

get Short Months

Declaration

public static String[] getShortMonths() 

Method Source Code

//package com.java2s;
import static java.util.Calendar.*;
import java.text.DateFormatSymbols;

import java.util.Locale;

public class Main {
    public static String[] getShortMonths() {
        return getMonthNames(Locale.getDefault(), SHORT);
    }//from   w  w  w.  j av a 2s .c om

    public static String[] getMonthNames(Locale l, int len) {

        String[] s;
        if (len == SHORT)
            s = new DateFormatSymbols(l).getShortMonths();
        else
            s = new DateFormatSymbols(l).getMonths();

        return s;
    }

    public static String[] getMonthNames() {
        return getMonthNames(Locale.getDefault(), LONG);
    }
}

Related

  1. getMonthStringByIndex(int index)
  2. getReadableMonth(int month)
  3. getCurrentMonth()
  4. getMonthNames()
  5. getMonthNames(Locale l, int len)
  6. getShortMonthString(int month)
  7. getLongMonthString(int month)
  8. GetMonthName(int month)
  9. intMonthToString(int month)