Java tutorial
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; import java.util.GregorianCalendar; public class Main { /** * * @return */ public static String tomorrow() { GregorianCalendar gc = new GregorianCalendar(); gc.setTime(new Date()); gc.add(GregorianCalendar.DATE, 1); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); return sdf.format(gc.getTime()); } }