const pattern = /(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})/;
const newDate = new Date(timeEnd.replace(pattern, '$1-$2-$3 $4:$5:$6'));

  

相关文章:

  • 2021-08-02
  • 2022-02-08
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-03-02
  • 2021-11-27
  • 2021-11-27
相关资源
相似解决方案