function updateDateTime() {
const now = new Date();
const formattedDate = now.toISOString().split('T')[0];
const formattedTime = now.toTimeString().split(' ')[0];
document.getElementById("campoDate").value = formattedDate;
document.getElementById("campoTime").value = formattedTime;
}
setInterval(updateDateTime, 1000);