//UNIX时间戳转换成日期格式
public static String timeStampToDate(Long timeStamp) {
String dateFormat_str = "yyyy-MM-dd";//日期格式
Date date = new Date(timeStamp);
SimpleDateFormat format = new SimpleDateFormat(dateFormat_str);
String nowDateString = format.format(date);
return nowDateString;
}
07-03
5585
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)