Java Month Get currentMonth()

Here you can find the source of currentMonth()

Description

current Month

License

Apache License

Declaration

public static String currentMonth() 

Method Source Code

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

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    private final static SimpleDateFormat yyyyMM = new SimpleDateFormat("yyyyMM");

    public static String currentMonth() {
        return yyyyMM.format(new Date());
    }//from  ww  w  .  ja v  a  2s.co m
}

Related

  1. currentMonthStr()
  2. getAktMonthName()
  3. getAllMonths(String date1, String date2)
  4. getBeforeMonth(int amount)