Here you can find the source of ConvertToSqlDate(java.util.Date date)
public static java.sql.Date ConvertToSqlDate(java.util.Date date)
//package com.java2s; //License from project: Apache License public class Main { public static java.sql.Date ConvertToSqlDate(java.util.Date date) { Long times = date.getTime(); java.sql.Date date1 = new java.sql.Date(times); return date1; }//from www . ja v a2 s .c om }