Java Date Calculate getDateCalculate(int d)

Here you can find the source of getDateCalculate(int d)

Description

get Date Calculate

License

Apache License

Declaration

public static Date getDateCalculate(int d) 

Method Source Code

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

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

public class Main {
    public static Date getDateCalculate(int d) {
        Calendar calendar = Calendar.getInstance();
        calendar.add(Calendar.DATE, d);
        return calendar.getTime();
    }//from  w  ww  .j ava  2s.  com
}

Related

  1. calculateTime(Date sendTime, String timeZoneID)
  2. calculateTimestamp()
  3. calculateTruncatedTime(final Date dateTimeBegin, final Date dateTimeEnd, final Date begin, final Date end)
  4. calculateTruncatedTimeByDays( final Date dateTimeStart, final Date dateTimeEnd, final Date start, final Date end)
  5. calculationAge(Date birthday, Date calculateDay)