Java Day End setEndDay(Date date)

Here you can find the source of setEndDay(Date date)

Description

set End Day

License

Open Source License

Declaration

public static Date setEndDay(Date date) 

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 setEndDay(Date date) {
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(date);//from   w  w w.j  av  a  2 s  .c  om
        calendar.set(Calendar.HOUR_OF_DAY, 23);
        calendar.set(Calendar.MINUTE, 59);
        calendar.set(Calendar.SECOND, 59);
        return calendar.getTime();
    }
}

Related

  1. postponeWorkingDay(final Calendar calendar, final int measureUnit, final int amount, final Long[] holidays)
  2. previousWorkingDay(final Calendar calendar, final Long[] holidays)
  3. secondsBetween(Date start, Date end, boolean assumeSameDate, boolean assumeSameHour)
  4. secondsToEndOfDay(Date aDate)
  5. secondsToEndOfDay(Date aDate)
  6. setTimeToEndofDay(Calendar calendar)
  7. setTimeToEndOfDay(Date date)
  8. subtractSecond(Date startDate, Date endDate)
  9. toDayEnds(Date date)