Java Month Get getCurrMonthLastDay()

Here you can find the source of getCurrMonthLastDay()

Description

get Curr Month Last Day

License

Open Source License

Declaration

public static String getCurrMonthLastDay() 

Method Source Code

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

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

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

    public static String getCurrMonthLastDay() {
        ca.set(Calendar.DAY_OF_MONTH, ca.getActualMaximum(Calendar.DAY_OF_MONTH));
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
        String last = format.format(ca.getTime());
        return last;
    }/*from w  w w .  ja v a  2s . c  o  m*/
}

Related

  1. getAktMonthName()
  2. getAllMonths(String date1, String date2)
  3. getBeforeMonth(int amount)
  4. getBeforeOrAfterDate(String strDate, int months)
  5. getCurMonth2Long()
  6. getEndDateOfMonth(String yyyymmdd)
  7. getEngMonth()
  8. getIntervalMonths(String startDate, String endDate)
  9. getIntevalMonth(String strDate1, String strDate2)