SyntaxFix
Write A Post
Hire A Developer
Questions
var today = new Date(); var year = today.getFullYear(); var mes = today.getMonth()+1; var dia = today.getDate(); var fecha =dia+"-"+mes+"-"+year; console.log(fecha);