Here you can find the source of getSqlDate()
public static java.sql.Date getSqlDate()
//package com.java2s; import java.util.*; public class Main { public static java.sql.Date getSqlDate() { return new java.sql.Date(getTime()); }//from w w w. j av a 2s.com public static long getTime() { Date dt = new Date(); return dt.getTime(); } }