Java Yesterday getYesterdayString()

Here you can find the source of getYesterdayString()

Description

get Yesterday String

License

Open Source License

Declaration

public static String getYesterdayString() 

Method Source Code


//package com.java2s;

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static SimpleDateFormat yyyyMMddHH_NOT_ = new SimpleDateFormat("yyyyMMdd");
    public static long DATEMM = 86400L;

    public static String getYesterdayString() {
        Date date = new Date(System.currentTimeMillis() - DATEMM * 1000L);
        String str = yyyyMMddHH_NOT_.format(date);
        return str;
    }/*from   w  w  w .  j av a  2 s  .c  o m*/
}

Related

  1. getYesterdayDateAsString()
  2. getYesterdayFormat(String format)
  3. getYesterdayFormatString(String format)
  4. getYesterdaysDate()
  5. getYesterdayStartDate()
  6. isYesterday(Date date)
  7. yesterday()
  8. yesterday()
  9. yesterday()