yiming
2024-03-15 2c68b2834ba953c066a849dc6dbdc159cb058675
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;