Java Month of Year getLastMonthOfYear()

Here you can find the source of getLastMonthOfYear()

Description

get Last Month Of Year

License

Apache License

Declaration

public static int getLastMonthOfYear() 

Method Source Code

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

import java.util.Calendar;

public class Main {
    public static int getLastMonthOfYear() {
        Calendar cal = Calendar.getInstance();
        cal.add(Calendar.MONTH, 0);
        int lastmonth = cal.get(Calendar.MONTH);
        return lastmonth;
    }//from   ww  w. j  a  va2  s  .  c om
}

Related

  1. getLastMonthAndCycle()
  2. getLastMonthdate()
  3. getLastMonthDate()
  4. getLastMonthDate(int date)
  5. getLastMonthOfQuater(Date date)
  6. getMaxDayOfMonth(int year, int month)
  7. getMonth(int week, int year)
  8. getMonthDays(Object year, Object month)
  9. getMonthHaveDays(int year, int month)