Here you can find the source of toTimestamp(java.sql.Date date)
public static Timestamp toTimestamp(java.sql.Date date)
//package com.java2s; //License from project: Open Source License import java.sql.Timestamp; public class Main { public static Timestamp toTimestamp(java.sql.Date date) { if (date == null) { return null; }/* w ww . j a v a2 s.c om*/ return new Timestamp(date.getTime()); } }