Java Month Day getDaysOfMonth(Date date)

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

Description

get Days Of Month

License

Open Source License

Declaration

public static int getDaysOfMonth(Date date) 

Method Source Code

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

import java.util.Calendar;
import java.util.Date;

public class Main {
    private static final Calendar calendar = Calendar.getInstance();

    public static int getDaysOfMonth(Date date) {
        calendar.setTime(date);/*from  w  ww .  j  a  v  a  2 s .c  om*/
        return calendar.getActualMaximum(Calendar.DAY_OF_MONTH);
    }
}

Related

  1. getCurrentDayOfMonth()
  2. getCurretnMonthFirstDay()
  3. getCurrMonthFirstDay()
  4. getDayOfMonth()
  5. getDaysInMonth(final Date date)
  6. getDaysOfMonth(Date date)
  7. getFirstDate(String base_month)
  8. getFirstDateOfCurMonth()
  9. getFirstDateOfMonth(Date theDate)