Java tutorial
//package com.java2s; public class Main { public static String getYearMonthDay1() { java.sql.Date date2 = new java.sql.Date(System.currentTimeMillis()); return date2.toString(); } }