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'));

  

posted on 2019-01-19 15:50  晓晨  阅读(1068)  评论(0编辑  收藏  举报