Java Date Previous GetPreMonthBeginDate()

Here you can find the source of GetPreMonthBeginDate()

Description

Get Pre Month Begin Date

License

Open Source License

Declaration

public static Date GetPreMonthBeginDate() 

Method Source Code

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

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

public class Main {
    /**// w  w  w.  j a  va2s .co m
     * @author WJ
     * @return
     */
    public static Date GetPreMonthBeginDate() {
        Calendar c = Calendar.getInstance();
        c.add(Calendar.MONTH, -1);
        c.set(Calendar.DAY_OF_MONTH, c.getActualMinimum(Calendar.DAY_OF_MONTH));
        return c.getTime();
    }
}

Related

  1. getPreDay(Date date)
  2. getPrefixStartDate(Integer day)
  3. getPreMonthDate(Date date, int month)
  4. getPrevDay(Date date)
  5. getPrevDueDate(int payperiod, long time)
  6. getPreviousDate(Date date)