Here you can find the source of dateToSQLDate(java.util.Date d)
public static Date dateToSQLDate(java.util.Date d)
//package com.java2s; //License from project: Apache License import java.sql.Date; public class Main { public static Date dateToSQLDate(java.util.Date d) { return d != null ? new Date(d.getTime()) : null; }//from ww w . j a va 2s . co m }