13位的时间戳可以直接用fastjson转换成时间格式吗

2025-05-05 06:40:07
推荐回答(1个)
回答1:

可以直接转换成Date对象,然后再用SimpleDateFormat格式化。
new SimpleDateFormat("日期格式").parseDate();