Posts by Renato da silva oliveira • 21 points
1 post
-
0
votes4
answers40794
viewsA: Convert date from DD/MM/YYYY to YYYY-MM-DD in Javascript
function formata_data(data) { // dd/mm/yyyy -> yyyy-mm-dd data_formatada = data.substr(6,4) + '-' + data.substr(3,2) + '-' + data.substr(0,2) + ' 00:00:00'; return new…
javascriptanswered Renato da silva oliveira 21