Devolver Fecha actual en JavaScript
let today = new Date().toLocaleDateString()
console.log(today)
Poor Polecat
let today = new Date().toLocaleDateString()
console.log(today)
var today = new Date();
var date = today.getFullYear()+'-'+(today.getMonth()+1)+'-'+today.getDate();
var time = today.getHours() + ":" + today.getMinutes() + ":" + today.getSeconds();
var dateTime = date+' '+time;
var today = new Date();
var date = today.getFullYear()+'-'+(today.getMonth()+1)+'-'+today.getDate();
new Date().toLocaleString();
>> "09/08/2014, 2:35:56 AM"
var today = new Date();
var date = today.getFullYear()+'-'+(today.getMonth()+1)+'-'+today.getDate();
// Getting date and time with javascript
// example: 1/11/2021 1:34:29
var currentdate = new Date();
var datetime = currentdate.getDay() + "/" + currentdate.getMonth()
+ "/" + currentdate.getFullYear() + " "
+ currentdate.getHours() + ":"
+ currentdate.getMinutes() + ":" + currentdate.getSeconds();