Generation

generate functionTue, 04 Apr 2023

reloj y fecha

function time() { 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; return dateTime; } time()

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant