Java Day From getLastDay(Date date)

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

Description

get Last Day

License

Apache License

Declaration

public static Date getLastDay(Date date) 

Method Source Code

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

import java.util.*;

public class Main {

    public static Date getLastDay(Date date) {
        Calendar c = Calendar.getInstance();
        c.setTime(date);// ww w.  j a v a  2s  . c o  m
        c.set(Calendar.DATE, c.get(Calendar.DATE) + 1);
        return c.getTime();
    }
}

Related

  1. getDays(Date sd, Date ed)
  2. getDaysBetween(int dateInt1, int dateInt2)
  3. getDaysInPastForDate(Date date)
  4. getFirstMilliOfDay(Date date)
  5. getIntervalInDaysSofar(Date from)
  6. getNextDay(Date startTime, int n)
  7. getNextDay(String date)
  8. getNoonOfDay(Date day)
  9. getPlusDay(String _oneDay, int _aFewDays)