Here you can find the source of getYearMonthDay1()
public static String getYearMonthDay1()
//package com.java2s; public class Main { public static String getYearMonthDay1() { java.sql.Date date2 = new java.sql.Date(System.currentTimeMillis()); return date2.toString(); }//w w w .jav a 2 s. c o m }