Here you can find the source of parseTimestamp(Date date)
public static java.sql.Timestamp parseTimestamp(Date date)
//package com.java2s; import java.util.Date; public class Main { public static java.sql.Timestamp parseTimestamp(Date date) { if (date == null) return null; long t = date.getTime(); return new java.sql.Timestamp(t); }/*w ww. jav a 2s . co m*/ }