Java tutorial
import java.util.Calendar; public class Main { public static void main(String[] args) { Calendar cal = Calendar.getInstance(); // return a string representation of this calendar. System.out.println(cal.getTime().toString()); } }