Java Day of toNextDayYMD()

Here you can find the source of toNextDayYMD()

Description

to Next Day YMD

License

Open Source License

Declaration

public static String toNextDayYMD() 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class Main {
    public static String toNextDayYMD() {
        final Calendar calendar = Calendar.getInstance();
        calendar.add(Calendar.DATE, -1);
        return new SimpleDateFormat("yyyyMMdd").format(calendar.getTime());
    }//from w  w w .j a  va 2  s. co  m
}

Related

  1. subtractDate(Date d, long day)
  2. toCurrentDatedefer(int day)
  3. ToEnglishDay(Date dt)
  4. ToEnglishDayWithMon(Date dt)
  5. tomorrow(int dayafter)
  6. toUtcDay(Date d)
  7. truncateToBeginOfDay(Date date)