Java Day From getBeforeDate_(Date date, int day)

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

Description

get Before Dat_

License

Open Source License

Declaration

public static Date getBeforeDate_(Date date, int day) 

Method Source Code

//package com.java2s;

import java.util.*;

public class Main {
    public static Date getBeforeDate_(Date date, int day) {
        Calendar cad = Calendar.getInstance();
        cad.setTime(date);//www.j  a va 2s . com
        cad.add(Calendar.DATE, -day);
        return cad.getTime();
    }
}

Related

  1. equalsDay(final Date date1, final Date date2)
  2. explDay(Date date)
  3. firstDayOfCentury(final int century)
  4. get23HourOfDay(Date date)
  5. getAge(Date birthDay)
  6. getDateByDay(Date date)
  7. getDateByNum(int day)
  8. getDateFromDayNum(int dayNum)
  9. getDateUpDay(Date d)