Here you can find the source of getCurrentDate()
public static Date getCurrentDate()
//package com.java2s; import java.sql.Date; public class Main { public static Date getCurrentDate() { java.util.Date utilDate = new java.util.Date(); return new java.sql.Date(utilDate.getTime()); }/*from w ww . ja v a2s. c om*/ }