Here you can find the source of currentDate()
public static Date currentDate()
//package com.java2s; //License from project: Open Source License import java.sql.Timestamp; import java.util.Date; public class Main { public static Date currentDate() { return new Timestamp(System.currentTimeMillis()); }//w ww. ja va2 s . c o m }