This commit is contained in:
sjk
2025-11-17 14:11:46 +08:00
commit ad4a600af9
1659 changed files with 171560 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
function formatDays(value) {
if (value < 10) {
return '0' + value;
}
return value;
}
var dateFormat = function (d) {
var date = getDate(+d);
return (
date.getFullYear() +
'-' +
formatDays(date.getMonth() + 1) +
formatDays(date.getDate())
);
};
module.exports.dateFormat = dateFormat;