Here you can find the source of getSqlCurrentDate()
public static java.sql.Date getSqlCurrentDate() throws ParseException
//package com.java2s; import java.text.ParseException; import java.text.SimpleDateFormat; public class Main { public static java.sql.Date getSqlCurrentDate() throws ParseException { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); java.util.Date d = sdf.parse(sdf.format(new java.util.Date())); return new java.sql.Date(d.getTime()); }//from w w w. j a va2s . c o m }