{"title": "完成時間", "index": "overDate", "type": "date", "width": 80, "className": "text-center", "render": (text) => {\n const date = new Date(text);\n const year = date.getFullYear();\n const month = String(date.getMonth() + 1).padStart(2, "0");\n const day = String(date.getDate()).padStart(2, "0");\n return ${year}-${month}-${day};\n}}

如何将日期格式化为 yyyy-mm-dd

原文地址: https://www.cveoy.top/t/topic/pWCW 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录