Java Month of Year sumDayByYearMonth(int year, int month)

Here you can find the source of sumDayByYearMonth(int year, int month)

Description

sum Day By Year Month

License

Apache License

Declaration

public static int sumDayByYearMonth(int year, int month) 

Method Source Code

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

import java.util.Calendar;

public class Main {
    public static int sumDayByYearMonth(int year, int month) {
        Calendar c = Calendar.getInstance();
        c.clear();//w w  w  .  java2 s. co m
        c.set(1, year);
        c.set(2, month - 1);
        return c.getActualMaximum(5);
    }
}

Related

  1. Month_Of_Year(String Date, int MonthCase)
  2. monthLength(int month, int year)
  3. newInstance(int year, int month, int day)
  4. sleepUntil(int year, int month, int day, int hour, int min, int sec)
  5. stringToMonth(String year, String month, boolean flag)
  6. year(int month, int day, int hour, int minute, int second)
  7. yearMonth()