String value="79898768";//时间戳
String date=stampToDate(value);//时间戳转换日期
//时间戳转换日期方法
public static String stampToDate(String value) {
String res;
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
long lt = new Long(value);
Date date = new Date(lt);
res = simpleDateFormat.format(date);
return res;
}