yiming
2024-02-29 620e4040d9e849d31abc9092b95c2e7bb14e75c5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;