FileDocCategorySizeDatePackage
DateAdd.javaAPI DocExample352Sat Nov 25 12:54:48 GMT 2000None

DateAdd

public class DateAdd extends Object
DateAdd -- compute the difference between two dates.

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] av)

		//+
		/** Today's date */
		Date now = new Date();

		long t = now.getTime();

		t -= 700*24*60*60*1000;

		Date then = new Date(t);

		System.out.println("Seven hundred days ago was " + then);
		//-