Java Day From getDay(Date date, int day)

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

Description

get Day

License

Open Source License

Declaration

public static Date getDay(Date date, int day) 

Method Source Code

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

import java.util.*;

public class Main {

    public static Date getDay(Date date, int day) {
        long currDateMills = date.getTime();
        long extraMills = day * 3600 * 1000 * 24;
        Calendar result = Calendar.getInstance();
        result.setTimeInMillis(currDateMills + extraMills);
        return result.getTime();
    }/*ww  w.java 2  s . co m*/
}

Related

  1. getDateByNum(int day)
  2. getDateFromDayNum(int dayNum)
  3. getDateUpDay(Date d)
  4. getDay(Date date)
  5. getDay(Date date)
  6. getDay(String date)
  7. getDay0(Date date)
  8. getDayOfDate(Date date)
  9. getDays(Date date1, Date date2)