Java Date After getDateAfter(Date d, int day)

Here you can find the source of getDateAfter(Date d, int day)

Description

get Date After

License

Open Source License

Declaration


public static Date getDateAfter(Date d, int day) 

Method Source Code

//package com.java2s;

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

public class Main {

    public static Date getDateAfter(Date d, int day) {
        Calendar now = Calendar.getInstance();
        now.setTime(d);// www .j a  v a2  s .  co m
        now.set(Calendar.DATE, now.get(Calendar.DATE) + day);
        return now.getTime();
    }
}

Related

  1. getAfterDay(Date date, int afterDays)
  2. getAfterDay(Date date, Integer day)
  3. getAfterDayNumber(Date endDate, Date startDate)
  4. getAfterEndDate(Integer day)
  5. getAfterMin(Date date, int min)
  6. getDateAfter(Date date, int days)
  7. getDateAfter(Date date, int increment)
  8. getDateAfterAddition(Date date, int days)
  9. getDateAfterMonths(Date start, int months)