Java Year Month getThisYearMonth()

Here you can find the source of getThisYearMonth()

Description

get This Year Month

License

Open Source License

Declaration

static public int getThisYearMonth() throws ParseException 

Method Source Code

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

import java.text.ParseException;

import java.util.Calendar;

public class Main {
    static public int getThisYearMonth() throws ParseException {
        //Date today = Calendar.getInstance().getTime();
        Calendar today = Calendar.getInstance();
        return (today.get(Calendar.YEAR)) * 100 + today.get(Calendar.MONTH) + 1;
    }/*  w w  w.  j a v a 2 s  . co m*/
}

Related

  1. getPerMonthByCuttentYear()
  2. getQuarterToYearMonthDay(Integer year, Integer quarter)
  3. getStartMonth(int year, int month)
  4. getTheLastDayOfTheMonth(int year, int month)
  5. getThisYearMonth()
  6. getTimeByYearMonth(String yearMonth, String timeZone)
  7. getYearAndMonth()
  8. getYearMonth()
  9. getYearMonth()