/* * Created on Sep 4, 2003 * * To change the template for this generated file go to * Window>Preferences>Java>Code Generation>Code and Comments */ package TestClasses; /** * @author student * * To change the template for this generated type comment go to * */ import java.sql.*; public class DateTest { public static void main(String[] args) { Date now = new Date(System.currentTimeMillis()); System.out.println("Date : "+now.toString()); System.out.println("Date Locale : "+now.toLocaleString()); System.out.println("Date Locale GMT : "+now.toGMTString()); } }