Java Day From calculateDate(Date startDay, int days)

Here you can find the source of calculateDate(Date startDay, int days)

Description

calculate Date

License

Open Source License

Declaration

public static Date calculateDate(Date startDay, int days) 

Method Source Code

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

import java.util.*;

public class Main {
    public static Date calculateDate(Date startDay, int days) {
        Calendar cal = Calendar.getInstance();
        cal.setTime(startDay);//  w  w w  .ja v a 2 s . co  m
        cal.add(Calendar.DAY_OF_YEAR, days);
        return cal.getTime();
    }
}

Related

  1. calculatorStartTimeOnDay(Date date)
  2. clearDay(long timeInMillis)
  3. CompareDay(Date orgin, Date target)
  4. convertYYMMDDToDate(int y, int m, int d, boolean beginning_of_day)