Java Calendar Month getMonthName(Calendar cal)

Here you can find the source of getMonthName(Calendar cal)

Description

get Month Name

License

Open Source License

Declaration

public static String getMonthName(Calendar cal) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.Calendar;

public class Main {
    static String[] monthName = { "JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV",
            "DEC" };

    public static String getMonthName(Calendar cal) {

        String month = monthName[cal.get(Calendar.MONTH)];

        return month;
    }//from w ww . java 2  s  . com
}

Related

  1. getMonth(Calendar c)
  2. getMonth(Calendar cal)
  3. getMonth(Calendar calendar)
  4. getMonthBegin(Calendar c)
  5. getMonthBegin(Calendar calendar)
  6. getMonthStart(Calendar c)
  7. getMonthStart(Calendar cal)
  8. getMonthStr(Calendar cal)
  9. getNextMonth(Calendar calendar, int month)