Here you can find the source of getTodaySqlDate()
public static java.sql.Date getTodaySqlDate()
//package com.java2s; import java.text.SimpleDateFormat; import java.util.*; public class Main { private final static SimpleDateFormat sdfTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); public static java.sql.Date getTodaySqlDate() { return new java.sql.Date(getToday().getTime()); }/* w w w.j a v a 2 s.c o m*/ public static String getTime() { return sdfTime.format(new Date()); } public static Date getToday() { return new Date(); } }