Java Tomorrow getTomorrow()

Here you can find the source of getTomorrow()

Description

get Tomorrow

License

Apache License

Declaration

public static String getTomorrow() 

Method Source Code


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

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

public class Main {
    public static final String FORMAT2 = "yyyy-MM-dd";

    public static String getTomorrow() {
        SimpleDateFormat df = new SimpleDateFormat(FORMAT2);
        Calendar c = Calendar.getInstance();
        c.add(Calendar.DATE, 1);//from   w  ww  .jav  a 2  s.  c  o  m
        return df.format(c.getTime());
    }
}

Related

  1. getTomorrow()
  2. getTomorrow(Date date1)
  3. getTomorrowDate(Date date)
  4. getTomorrowDateAsString()
  5. getTomorrowOnlyDate()