Java tutorial
import java.util.Date; /** Output: The DATE is 05/26/06 * */ public class MainClass { public static void main(String args[]) throws Exception { Date date = new Date(); System.out.printf("The DATE is %tD\n", date); } }