Java tutorial
//package com.java2s; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Locale; public class Main { public static String addDay(int day) { DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd", Locale.getDefault()); Calendar cal = Calendar.getInstance(); cal.add(Calendar.DATE, day); return dateFormat.format(cal.getTime()); } }