Android Month Date Get maxMonthDate(Date date)

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

Description

max Month Date

License

Open Source License

Declaration

public static int maxMonthDate(Date date) 

Method Source Code

//package com.java2s;

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

public class Main {
    public static int maxMonthDate(Date date) {
        Calendar calendar = calendarDate(date);
        return calendar.getActualMaximum(Calendar.DAY_OF_MONTH);
    }/*from w w w  .  ja  v a 2  s.c  o m*/

    public static Calendar calendarDate(Date date) {
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(date);
        return calendar;
    }
}

Related

  1. getCurrentMonth(Date date)
  2. monthNumber(Date date)
  3. getMonthStartDate(Date date)
  4. getMonthEndDate(Date date)
  5. getCurrentMonth()
  6. monthNumber()