Here you can find the source of GetSqlDate()
public static java.sql.Date GetSqlDate() throws Exception
//package com.java2s; //License from project: Open Source License import java.util.Date; public class Main { public static java.sql.Date GetSqlDate() throws Exception { Date cDate = new Date(); return new java.sql.Date(cDate.getTime()); }//from w ww .j a v a2 s . c o m }