Java Month of Year getFirstMonthOfThisYear()

Here you can find the source of getFirstMonthOfThisYear()

Description

get First Month Of This Year

License

Apache License

Declaration

public static String getFirstMonthOfThisYear() 

Method Source Code

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

import java.util.Calendar;

public class Main {
    private static int curYear;
    private static String date;

    public static String getFirstMonthOfThisYear() {
        Calendar calendar = Calendar.getInstance();
        curYear = calendar.get(Calendar.YEAR);
        date = "" + curYear + "01";
        // System.out.println(date);
        return date;
    }//from  w ww. j ava  2 s.co  m
}

Related

  1. getActualMonthBefore(int year, int month, int i)
  2. getCalforMonth(String month, String year)
  3. getDaysByYearMonth(int year, int month)
  4. getDefaultHolidays(int year, int month)
  5. getEndOfMonth(String year, String month)
  6. getFirstTimeOfDay(int year, int month, int day)
  7. getLastCompletedMonthAndYear()
  8. getLastMonth()
  9. getLastMonth()