Java Calendar Month getLastDayOfMonth(Calendar calendar)

Here you can find the source of getLastDayOfMonth(Calendar calendar)

Description

get Last Day Of Month

License

LGPL

Declaration

public static Calendar getLastDayOfMonth(Calendar calendar) 

Method Source Code

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

import java.util.Calendar;

public class Main {
    public static Calendar getLastDayOfMonth(Calendar calendar) {
        Calendar ret = (Calendar) calendar.clone();
        ret.add(Calendar.MONTH, 1);
        ret.set(Calendar.DAY_OF_MONTH, 0);
        return ret;
    }//w ww. j  a va  2  s  .c o m
}

Related

  1. getFirstDayOfMonth(Calendar cal)
  2. getFirstDayOfMonth(final Calendar calendar, final Date date)
  3. getLastDateOfMonth(Calendar calendar)
  4. getLastDayOfMonth(Calendar c)
  5. getLastDayOfMonth(Calendar c)
  6. getLastMonthDays(Calendar c)
  7. getMonth(Calendar c)
  8. getMonth(Calendar cal)
  9. getMonth(Calendar calendar)