Java Month Get getThisMonth()

Here you can find the source of getThisMonth()

Description

get This Month

License

Apache License

Declaration

public static String getThisMonth() 

Method Source Code

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

import java.text.SimpleDateFormat;

public class Main {
    public static SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd");

    public static String getThisMonth() {

        String dateString = "";

        java.text.SimpleDateFormat formatter = new java.text.SimpleDateFormat("MM");
        java.util.Date currentTime_1 = new java.util.Date();
        dateString = formatter.format(currentTime_1);

        return dateString;
    }//  w w w. ja  v  a 2 s.c o  m
}

Related

  1. getStartDateOfMonth(String yyyymm)
  2. getStrOfNextMonth(String dateStr)
  3. getStrThisMonth()
  4. getThisMonth()
  5. getThisMonth()
  6. getThisMonthAndCycle()
  7. getThisMonthDate()
  8. getThisMonthLastDate()
  9. getTsOfMonth(Date date, boolean isEnd, boolean isPrevious)