Here you can find the source of timestampToDate(Timestamp tt)
public static Date timestampToDate(Timestamp tt)
//package com.java2s; //License from project: Apache License import java.sql.Timestamp; import java.util.Date; public class Main { public static Date timestampToDate(Timestamp tt) { return new Date(tt.getTime()); }//from w ww .j a v a2 s.c o m }