Java tutorial
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; public class Main { public static String DATE_FORMAT = "yyyy-MM-dd"; public static String getTomorrow() { Calendar cal = Calendar.getInstance(); cal.add(Calendar.DATE, 1); Date date = cal.getTime(); SimpleDateFormat sf = new SimpleDateFormat(DATE_FORMAT); return sf.format(date); } }