new Date(parseInt(data.substring(6, data.length - 2))).toLocaleDateString();

我这里的data记得替换成你的数据,在过滤器中写入代码后引用,根据时间戳来替换现在的时间

还有一种办法

在js中可以这样写

var time = Math.round(new Date() / 1000);
new Date(parseInt(time * 1000)).toLocaleDateString();

这样式把当前时间写入数据库中。

相关文章:

  • 2022-12-23
  • 2021-12-05
  • 2021-10-31
  • 2022-12-23
  • 2021-12-28
  • 2022-12-23
  • 2021-12-09
猜你喜欢
  • 2022-01-04
  • 2022-12-23
  • 2021-11-26
  • 2021-07-30
  • 2023-03-29
相关资源
相似解决方案