function getDate(str_time) {
var re = new RegExp('\\/Date\\(([-+])?(\\d+)(?:[+-]\\d{4})?\\)\\/');
var r = (str_time || '').match(re);
var format = r ? new Date(((r[1] || '') + r[2]) * 1) : null;
return r ? new Date(((r[1] || '') + r[2]) * 1) : null;
}
function formatDate(now) {
var year = now.getYear()+1900;
var month = now.getMonth() + 1;
var date = now.getDate();
var hour = now.getHours();
var minute = now.getMinutes();
var second = now.getSeconds();
return year + "-" + month + "-" + date + " " + hour + ":" + minute + ":" + second;
}

var d=formatDate(getDate('/Date(1426056463000)/'));

相关文章:

  • 2022-12-23
  • 2021-10-29
  • 2021-06-26
  • 2022-02-08
  • 2022-12-23
  • 2021-10-12
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-27
  • 2021-12-06
  • 2021-07-08
  • 2021-09-22
相关资源
相似解决方案