错误的日期格式
{
"condition": { "startTime": "2019-11-6 00:00:00", "endTime": "2019-11-7 00:00:00" }, "pageSize": 100, "pageNum": 1 } 正确的日期格式 如果日期是1-9号,则前面需要加上0 { "condition": { "startTime": "2019-11-06 00:00:00", "endTime": "2019-11-07 00:00:00" }, "pageSize": 100, "pageNum": 1 }


// 转换日期的方法
function dateFormat(date) {
return `${date.getFullYear()}-${date.getMonth() + 1}-${(date.getDate() > 9) ? date.getDate() : '0' + date.getDate()} 00:00:00`
}
 

 

相关文章:

  • 2021-11-08
  • 2022-12-23
  • 2021-12-14
  • 2021-04-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-26
猜你喜欢
  • 2021-11-08
  • 2022-12-23
  • 2021-11-14
  • 2022-12-23
  • 2021-05-01
  • 2022-12-23
  • 2021-12-08
相关资源
相似解决方案