Java Yesterday yesterday()

Here you can find the source of yesterday()

Description

yesterday

License

Apache License

Declaration

public static Calendar yesterday() 

Method Source Code

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

import java.util.*;

public class Main {
    public static Calendar yesterday() {
        Calendar rtn = new GregorianCalendar();
        rtn.add(Calendar.DATE, -1);
        return rtn;
    }/*from   w  ww  .j a  v a2 s  .c  o m*/
}

Related

  1. getYesterdayStartDate()
  2. getYesterdayString()
  3. isYesterday(Date date)
  4. yesterday()
  5. yesterday()
  6. yesterDay()
  7. yesterday()
  8. yesterday()
  9. yesterday()