Java Month Get getMonth(Date date)

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

Description

get Month

License

Open Source License

Declaration

public static int getMonth(Date date) 

Method Source Code

//package com.java2s;
import java.util.*;

public class Main {
    public static Calendar calendar = new GregorianCalendar();

    public static int getMonth(Date date) {
        calendar.setTime(date);//  w  w  w  .j  a va  2 s  . co m
        return calendar.get(Calendar.MONTH);
    }
}

Related

  1. getMonth()
  2. getMonth()
  3. getMonth(Date d)
  4. getMonth(Date date)
  5. getMonth(Date date)
  6. getMonth(Date date)
  7. getMonth(Date date)
  8. getMonth(Date date)
  9. getMonth(Date date)