js 时间戳转日期格式
timestampToDate(obj.project_time),
import moment from “moment”;
const timestampToDate = (timestamp: any) => {
const date = new Date(timestamp * 1000);
const newDate = moment(date).format(“YYYY-MM-DD”);
return newDate; // 使用Intl.DateTimeFormat进行格式化
};