Java Month Name Get getMonthName(Date date)

Here you can find the source of getMonthName(Date date)

Description

get Month Name

License

Apache License

Declaration

public static String getMonthName(Date date) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.text.DateFormatSymbols;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Main {
    public static String getMonthName(Date date) {
        return new SimpleDateFormat("MMMM").format(date);
    }/* ww  w.ja  v  a  2 s .co  m*/

    public static String getMonthName(int month) {
        return new DateFormatSymbols().getMonths()[month];
    }
}

Related

  1. getMonth(boolean name)
  2. getMonth(String monthName)
  3. getMonthByName(String monthName)
  4. getMonthFromMonthName(String name)
  5. getMonthName()
  6. getMonthName(int index)
  7. getMonthName(int month, Locale locale)
  8. getMonthName(int MonthNumber)
  9. getMonthName(int monthNumber)