Java Date Previous getPreDay(Date date)

Here you can find the source of getPreDay(Date date)

Description

get Pre Day

License

Apache License

Declaration

public static Date getPreDay(Date date) 

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 getPreDay(Date date) {
        Calendar c = Calendar.getInstance();
        c.setTime(date);//from  w w  w  .j a  va2  s  .  com
        c.add(Calendar.DATE, -1);
        return c.getTime();
    }
}

Related

  1. getPrefixStartDate(Integer day)
  2. GetPreMonthBeginDate()
  3. getPreMonthDate(Date date, int month)
  4. getPrevDay(Date date)