Java Day End getSecondSemesterEndDate(Integer year)

Here you can find the source of getSecondSemesterEndDate(Integer year)

Description

get Second Semester End Date

License

Apache License

Declaration

public static Date getSecondSemesterEndDate(Integer year) 

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 getSecondSemesterEndDate(Integer year) {
        Calendar calendar = Calendar.getInstance();
        calendar.set(Calendar.YEAR, year);
        calendar.set(Calendar.MONTH + 1, 7);
        calendar.set(Calendar.DAY_OF_MONTH, 1);
        return calendar.getTime();
    }//from  w w w  .jav a  2  s  . c  o  m
}

Related

  1. getNumberOfDaysBetweenDates(Date beginDate, Date endDate)
  2. getNumberOfMonthsBetween(final Date begin, final Date end)
  3. getNumMonths(Date dStart, Date dEnd)
  4. getNumYears(Date dStart, Date dEnd)
  5. getSCDEndDate()
  6. getSendTime(Date sendDate, Date start, Date end)
  7. getStartAndEndDate(Date d)
  8. getStartOrEndTime(Date date, int flag)
  9. getSubSeconds(Date minuendDate, Date subDate)