Java Calendar Month month(Calendar calendar)

Here you can find the source of month(Calendar calendar)

Description

month

License

Open Source License

Declaration

public static int month(Calendar calendar) 

Method Source Code

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

import java.util.Calendar;

public class Main {
    public static int month(Calendar calendar) {
        return calendar.get(Calendar.MONTH) + 1;
    }/*  ww  w  .ja  v a 2s  . c  o m*/

    public static int month() {
        return Calendar.getInstance().get(Calendar.MONTH) + 1;
    }
}

Related

  1. incrementMonth(Calendar cal)
  2. incrementMonthByVal(Calendar theCal, int val)
  3. intToCalendarMonth(int month)
  4. isFirstDayOfMonth(Calendar calendar)
  5. lastDayOfMonth(Calendar c)
  6. month(Calendar date)
  7. numberOfDaysInMonth(Calendar cal)
  8. sameMonth(Calendar one, Calendar two)
  9. setDate(Calendar cal, int month, int date)