Here you can find the source of convertToDatabaseDate(Date date)
public static java.sql.Date convertToDatabaseDate(Date date)
//package com.java2s; //License from project: Open Source License import java.util.Date; public class Main { public static java.sql.Date convertToDatabaseDate(Date date) { if (date == null) return null; return new java.sql.Date(date.getTime()); }/* www. j ava 2s. c o m*/ }