Java Month Get getMonths()

Here you can find the source of getMonths()

Description

Returns all months in a string array.

License

Open Source License

Return

months

Declaration

public static String[] getMonths() 

Method Source Code


//package com.java2s;

import java.text.DateFormatSymbols;

public class Main {
    /**/*  w ww. ja v a 2  s . c o m*/
     * Returns all months in a string array.
     * Indexes start from 0. i.e. 0 -> January
     * @return months
     */
    public static String[] getMonths() {
        return new DateFormatSymbols().getMonths();
    }
}

Related

  1. getMonthNo(Date date)
  2. getMonthNumber()
  3. getMonthOfSeason(Date date, boolean firstOrLast)
  4. getMonthPath(Date date)
  5. getMonthRange(String strBeginDate, String strEndDate, String pattern)
  6. getMonths(DateFormatSymbols symbols)
  7. getMonthSpace(Date date)
  8. getMonthStartTime(int year, int month)
  9. getMonthString(Date date)