FileDocCategorySizeDatePackage
DateDemo.javaAPI DocExample481Fri Jul 23 20:10:40 BST 1999None

DateDemo

public class DateDemo extends Object
Show some date uses

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

		//+
		Date dNow = new Date();

		/* Simple, Java 1.0 date printing */
		System.out.println("It is now " + dNow.toString());


		// Use a SimpleDateFormat to print the date our way.
		SimpleDateFormat formatter
			= new SimpleDateFormat ("E yyyy.MM.dd 'at' hh:mm:ss a zzz");
		System.out.println("It is " + formatter.format(dNow));
		//-