Java tutorial
import java.util.Calendar; public class Main { public static void main(String[] args) { // create a calendar Calendar cal = Calendar.getInstance(); // gets a calendar using the default time zone and locale. System.out.print("Date And Time Is: " + cal.getTime()); } }