闫增涛
2024-02-23 fdfb3ca757ecd6c396632ed276ff354671d3a7e5
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;