function displayDateTime() { const daysOfWeek = ["neděle", "pondělí", "úterý", "středa", "čtvrtek", "pátek", "sobota"]; const currentDate = new Date(); const dayOfWeek = daysOfWeek[currentDate.getDay()]; const day = currentDate.getDate(); const month = currentDate.getMonth(); const year = currentDate.getFullYear(); const hours = currentDate.getHours(); const minutes = currentDate.getMinutes(); const output = `Dnes je ${dayOfWeek}, ${day}. ${month}. ${year}. Čas ${hours}:${minutes}`; document.body.innerHTML = `${output}`; }