Studyon Minte9.com
Java SE




Current Date




package testexample; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; public class Test { public static void main(String[] args) { DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); Date date = new Date(); System.out.println(dateFormat.format(date)); } }
 


http://www.mkyong.com/java/java-how-to-get-current-date-time-date-and-calender/