Date: setTime(long miliseconds)
/* * Output: Thu Aug 03 13:27:11 PDT 2006 */ import java.util.*; public class MainClass { public static void main(String args[]) { Date date = new Date(); long msec = date.getTime(); msec += 100 * 24 * 60 * 60 * 1000L; date.setTime(msec); System.out.println(date); } }