export const formatDate = (timestamp) => {
  return timestamp.replace(/T/g,' ').replace(/Z/g,'')
}

毫秒级:

export const formatDate = (timestamp) => {
  return timestamp.replace(/T/g,' ').replace(/\.[\d]{3}Z/,'')
 }

 

相关文章:

  • 2021-08-22
  • 2022-12-23
  • 2021-10-15
  • 2021-10-02
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2022-12-23
相关资源
相似解决方案