function(){ return FR.contentFormat((this.value+5)*10000000000,"yyyy-MM-dd");}
怎么将日期20240828转为2024-08-28,上面的代码要怎么改
function(){
const originalDate = FR.contentFormat((this.value+5)*10000000000,"yyyy-MM-dd");
const year = originalDate.slice(0, 4);
const month = originalDate.slice(4, 6);
const day = originalDate.slice(6);
const formattedDate = `${year}-${month}-${day}`;
return (formattedDate);
}
https://help.fanruan.com/finereport/doc-view-1785.html JS中调用FR公式