Here you can find the source of toJavaDate(Timestamp dt)
public static Date toJavaDate(Timestamp dt)
//package com.java2s; //License from project: Apache License import java.sql.Timestamp; import java.util.Date; public class Main { public static Date toJavaDate(Timestamp dt) { if (dt == null) { return null; }/* www . ja v a 2s . co m*/ return new Date(dt.getTime()); } }