import java.util.Date; import java.util.GregorianCalendar; public class Main { public static void main(String[] a) { GregorianCalendar calendar = new GregorianCalendar(); Date now = calendar.getTime(); System.out.println(now); } }