Java Month Get getYestMonth()

Here you can find the source of getYestMonth()

Description

/

License

Apache License

Declaration

public static String getYestMonth() 

Method Source Code

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

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    private static final String YYYY_MM = "yyyyMM";

    /**//from   w  w  w . j  a  v  a2s.  c  om
     * /**
     *
     * @return
     */
    public static String getYestMonth() {
        return new SimpleDateFormat(YYYY_MM).format(new Date());
    }
}

Related

  1. getThisMonthLastDate()
  2. getTsOfMonth(Date date, boolean isEnd, boolean isPrevious)
  3. getWeekOfMonth(String datetime)
  4. getWorkMonthLastDay(Date date)
  5. getYesterdayOnLastMonth(String yesterday)