Here you can find the source of convertDateFromSqlToUtil(java.sql.Date sqlDate)
static java.util.Date convertDateFromSqlToUtil(java.sql.Date sqlDate)
//package com.java2s; public class Main { static java.util.Date convertDateFromSqlToUtil(java.sql.Date sqlDate) { java.util.Date utilDate = null; if (sqlDate != null) { utilDate = new java.util.Date(); long longTime = sqlDate.getTime(); utilDate.setTime(longTime);/*from w w w. ja va 2 s . com*/ } return utilDate; } }