Java Day End getEndDate(Date startDate)

Here you can find the source of getEndDate(Date startDate)

Description

get End Date

License

Open Source License

Declaration

public static Date getEndDate(Date startDate) 

Method Source Code


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

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

public class Main {
    public static Date getEndDate(Date startDate) {
        Calendar calendar = Calendar.getInstance();
        calendar.clear();//  w  ww . j  a va  2  s .  com
        calendar.setTime(startDate);
        calendar.add(Calendar.DAY_OF_YEAR, 16 * 7 - 3);
        return calendar.getTime();
    }
}

Related

  1. getDefaultEndDateForLogQuery()
  2. getDistDates(Date startDate, Date endDate)
  3. getEndDate()
  4. getEndDate(Date beginDate, int resolution)
  5. getEndDate(Date date)
  6. getEndDate(int useMonth)
  7. getEndDate(String date)
  8. getEndDateByDate(Date date)
  9. getEndDateByYears(Date date, int years)