Java Date Add addDay(Date date, int days)

Here you can find the source of addDay(Date date, int days)

Description

add Day

License

Open Source License

Declaration

public static final Date addDay(Date date, int days) 

Method Source Code

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

import java.util.*;

public class Main {

    public static final Date addDay(Date date, int days) {
        Calendar cale = Calendar.getInstance();
        cale.setTime(date);//from  ww w. j a  v a 2  s  . com
        cale.add(Calendar.DAY_OF_YEAR, days);
        return cale.getTime();
    }
}

Related

  1. addDate(String dt, long day)
  2. addDateByDays(int days)
  3. addDateDay(int day)
  4. addDateParam(String dtstr, boolean start, List where)
  5. addDates(Date startDate, int days)
  6. addDays(Date date1, long days)
  7. addDays(Date dateToAdd, int numberOfDay)
  8. addDays(Date target, int days)
  9. addDays(Date when, int amount)