Java tutorial
import java.util.Date; public class Main { public static void main(String[] args) { // create a date Date date = new Date(); // print the string representation System.out.println("String : " + date.toString()); } }