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