guoqingdragon

function changeDateFormat(cellval) {
if (cellval != null) {
var date = new Date(parseInt(cellval.replace("/Date(", "").replace(")/", ""), 10));
var month = date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1;
var currentDate = date.getDate() < 10 ? "0" + date.getDate() : date.getDate();
return date.getFullYear() + "-" + month + "-" + currentDate;
}
}

分类:

技术点:

相关文章:

  • 2022-01-01
  • 2022-01-01
  • 2021-12-22
  • 2021-11-27
  • 2022-01-01
  • 2022-01-01
  • 2021-07-16
猜你喜欢
  • 2021-11-27
  • 2021-11-27
  • 2022-01-01
  • 2022-01-01
  • 2021-11-27
  • 2021-11-27
  • 2022-01-01
相关资源
相似解决方案