Here you can find the source of TimestampToDate(Integer time)
public static Date TimestampToDate(Integer time)
//package com.java2s; import java.sql.Timestamp; import java.util.Date; public class Main { public static Date TimestampToDate(Integer time) { long temp = (long) time * 1000; Timestamp ts = new Timestamp(temp); Date date = new Date(); try {//from w ww. ja v a 2s .co m date = ts; //System.out.println(date); } catch (Exception e) { e.printStackTrace(); } return date; } }