📜  formatar data com jquery - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:21.211000             🧑  作者: Mango

代码示例1
var data = '2016-12-08 00:00:00.0';
var dataFormatada = data.replace(/(\d*)-(\d*)-(\d*).*/, '$1-$2-$3');
console.log(dataFormatada);