Java Day Next getNextDay()

Here you can find the source of getNextDay()

Description

get Next Day

License

Apache License

Declaration

public static String getNextDay() 

Method Source Code

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

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    private static Date date = new Date();
    public final static SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");

    public static String getNextDay() {
        String operationtime = dateFormat.format(new java.util.Date(date.getTime() + 24 * 60 * 60 * 1000));
        return operationtime;
    }//from   ww w  . j  a  v a 2  s. co m
}

Related

  1. getNextDay(Date date)
  2. getNextDay(Date date)
  3. getNextDay(Date nowdate, int delay)
  4. getNextDay(String date)