Here you can find the source of getTomorrowOnlyDate()
public static String getTomorrowOnlyDate()
//package com.java2s; //License from project: Apache License import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; public class Main { /**/*from www.j ava 2 s .com*/ * yyyy-MM-dd Comment for <code>onlyDateFmt</code> */ public static final SimpleDateFormat onlyDateFmt = new SimpleDateFormat("yyyy-MM-dd", Locale.CHINA); /** * @return yyyy-MM-dd */ public static String getTomorrowOnlyDate() { Date d = new Date(); return onlyDateFmt.format(new Date(d.getTime() + 24 * 60 * 60 * 1000)); } }