Java Today getYestoday()

Here you can find the source of getYestoday()

Description

get Yestoday

License

Open Source License

Declaration

public static String getYestoday() 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;

import java.util.Calendar;

public class Main {

    public static String getYestoday() {
        Calendar calendar = Calendar.getInstance();
        calendar.add(Calendar.DATE, -1);
        return new SimpleDateFormat("yyyyMMdd").format(calendar.getTime());
    }//  w w  w.  j a  va2  s . co  m
}

Related

  1. getTodayYMD()
  2. getTodayZero()
  3. getTodayZero()
  4. getTodayZeroHour()
  5. getTommorrow(String today)
  6. getYestoday(String sourceDate, String format)
  7. isBeforeToday(Date date)
  8. isBeforeToday(Date date)
  9. isGreaterThanToday(String dateString)