Android Calendar Get getMonth(Calendar c)

Here you can find the source of getMonth(Calendar c)

Description

get Month

Declaration

public static int getMonth(Calendar c) 

Method Source Code

//package com.java2s;

import java.util.Calendar;

public class Main {
    public static int getMonth(Calendar c) {
        if (c != null) {
            return c.get(Calendar.MONTH);
        } else {//from   ww w .  ja  va2  s  . c  o  m
            return Calendar.getInstance().get(Calendar.MONTH);
        }
    }
}

Related

  1. getMinTimeMillisToday(final Calendar calendar)
  2. getMinTimeMillisWeek()
  3. getMinute()
  4. getMinute(Calendar c)
  5. getMonth()
  6. getSecond(Calendar c)
  7. getTimeByStr(String str)
  8. getTimeMillis()
  9. getWeek(final Calendar calendar)