//转换为String类型即可
public String stampToDate(String s){
String res;
SimpleDateFormat simpleDateFormat =new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
long lt =new Long(s);
Date date =new Date(lt);
res = simpleDateFormat.format(date);
return res;
}
网友评论