Here you can find the source of getTomorrow()
public static String getTomorrow()
//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()); } }