Java Day From nextDay(Date date, int day)

Here you can find the source of nextDay(Date date, int day)

Description

next Day

License

Apache License

Declaration

public static Date nextDay(Date date, int day) 

Method Source Code

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

import java.util.*;

public class Main {

    public static Date nextDay(Date date, int day) {
        Calendar cal = Calendar.getInstance();
        if (date != null) {
            cal.setTime(date);//from   w w w  .  j  a v a2 s  .  c o  m
        }
        cal.add(Calendar.DAY_OF_YEAR, day);
        return cal.getTime();
    }
}

Related

  1. getTimeField(Date day, int field)
  2. isBusinessDay(int dateIntToCheck)
  3. isDefaultWorkingDay(Date date)
  4. isOneDayZeroPoint(Date date)
  5. nextDay(Date date)
  6. startOfDay(Date date)
  7. startOfDay(Date datum)