Java Date After getAfterDay(Date date, int afterDays)

Here you can find the source of getAfterDay(Date date, int afterDays)

Description

get After Day

License

Open Source License

Declaration

public static Date getAfterDay(Date date, int afterDays) 

Method Source Code

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

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

public class Main {
    private static Calendar ca = Calendar.getInstance();

    public static Date getAfterDay(Date date, int afterDays) {
        ca.setTime(date);// w  w w.  ja  va  2s .c  om
        ca.add(Calendar.DATE, 1);
        return ca.getTime();
    }
}

Related

  1. dateAfter(Date date, int years, int months)
  2. dateAfter(Date origDate, int amount, int timeUnit)
  3. dateAfterNMonths(Date dt, int n)
  4. daysAfter(Date dateInst, int numDays)
  5. getAfter(Date comparedDate, int cursor, String unit)
  6. getAfterDay(Date date, Integer day)
  7. getAfterDayNumber(Date endDate, Date startDate)
  8. getAfterEndDate(Integer day)
  9. getAfterMin(Date date, int min)