Java Year Get getNextYearFirst()

Here you can find the source of getNextYearFirst()

Description

get Next Year First

License

Apache License

Declaration

public static Date getNextYearFirst() 

Method Source Code

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

import java.util.Calendar;
import java.util.Date;

public class Main {

    public static Date getNextYearFirst() {
        Calendar currCal = Calendar.getInstance();
        int currentYear = currCal.get(Calendar.YEAR);
        return getYearFirst(currentYear + 1);
    }//from   www  .  j  a  va  2s  .  c om

    public static Date getYearFirst(int year) {
        Calendar calendar = Calendar.getInstance();
        calendar.clear();
        calendar.set(Calendar.YEAR, year);
        Date currYearFirst = calendar.getTime();
        return currYearFirst;
    }
}

Related

  1. getDaysFromYearZero(Calendar date)
  2. getFewYearsTime(String date, int year)
  3. getHalfYearEndDate(Date date)
  4. getLastDayOfYear(Date date)
  5. getNextYear()
  6. getNextYearMonthStr()
  7. getOfflimitDates(int year)
  8. getRandomDate(int firstYar, int lastYear)
  9. getSpecficYearEnd(Date date, int amount)