Here you can find the source of objToTimeStamp(Object obj)
public static Timestamp objToTimeStamp(Object obj)
//package com.java2s; import java.sql.Timestamp; public class Main { public static Timestamp objToTimeStamp(Object obj) { Timestamp tt = null;// w w w . ja v a 2s. co m if (obj != null) { tt = (Timestamp) obj; } return tt; } }