📅  最后修改于: 2022-03-11 15:04:21.211000             🧑  作者: Mango
var data = '2016-12-08 00:00:00.0';
var dataFormatada = data.replace(/(\d*)-(\d*)-(\d*).*/, '$1-$2-$3');
console.log(dataFormatada);