Java Month Day getMonthLastDay()

Here you can find the source of getMonthLastDay()

Description

get Month Last Day

License

Apache License

Declaration

public static String getMonthLastDay() 

Method Source Code

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

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class Main {

    public static String getMonthLastDay() {
        SimpleDateFormat sdf = new SimpleDateFormat("dd");
        Calendar calendar = Calendar.getInstance();
        calendar.set(Calendar.DAY_OF_MONTH, calendar.getActualMaximum(Calendar.DAY_OF_MONTH));
        return sdf.format(calendar.getTime());
    }//from w  w w.j a  va 2s.  co m
}

Related

  1. getMonthFirstDay(Date date)
  2. getMonthFirstDay(String date)
  3. getMonthFirstDay(T date)
  4. getMonthFristWeekSunday(String month)
  5. getMonthLastDay()
  6. getMonthLastDay()
  7. getMonthLastDay(String curmonth, int month)
  8. getMonthLastDay(String dateString)
  9. getMonthLastDay(String fmt)