Answers for "formatar data com jquery"

0

formatar data com jquery

var data = '2016-12-08 00:00:00.0';
var dataFormatada = data.replace(/(\d*)-(\d*)-(\d*).*/, '$1-$2-$3');
console.log(dataFormatada);
Posted by: Guest on April-19-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language