安装 silly-datetime

新建一个js文件,文件内容如下:

var sd = require('silly-datetime');
var time=sd.format(new Date(), 'YYYY-MM-DD HH:mm');
console.log(time);

相关文章:

  • 2021-04-20
  • 2021-05-25
  • 2022-02-14
  • 2022-01-17
  • 2021-10-20
猜你喜欢
  • 2022-01-26
  • 2022-12-23
  • 2022-12-23
  • 2022-02-07
  • 2021-06-06
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案