Here you can find the source of convertToSqlDate(java.util.Date argUtilDate)
public static Date convertToSqlDate(java.util.Date argUtilDate)
//package com.java2s; import java.sql.Date; public class Main { public static Date convertToSqlDate(java.util.Date argUtilDate) { java.sql.Date sqlDate = null; if (isNull(argUtilDate)) { return null; } else {/*from w ww. ja v a2s. co m*/ sqlDate = new java.sql.Date(argUtilDate.getTime()); } return sqlDate; } public static boolean isNull(Object argObject) { if (argObject == null) return true; else return false; } }