Java Month Convert isCurMonth(String month)

Here you can find the source of isCurMonth(String month)

Description

is Cur Month

License

Open Source License

Declaration

public static Boolean isCurMonth(String month) 

Method Source Code


//package com.java2s;

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

public class Main {

    public static Boolean isCurMonth(String month) {
        SimpleDateFormat daytime = new SimpleDateFormat("yyyyMM");
        Calendar calendar = Calendar.getInstance();
        String curMonth = daytime.format(calendar.getTime());
        return month.equals(curMonth);
    }//from  w w  w . java  2s.c o  m
}

Related

  1. convertToAlphaMonth(final int importIntMonth)
  2. convertToMonth_long(int month)
  3. convertToNumericMonth(String importStrMonth)
  4. createFutureDate(int days, int months)
  5. differenceMonth(String strDate1, String strDate2)
  6. month()
  7. month(Date date, Locale locale)
  8. month2String(Date date)
  9. monthAgo()