const electricDate = document.querySelector(".electronic__date");
const electricTime = document.querySelector(".electronic__clock");
setInterval(checkDateAndTime, 1000);
function checkAddZero(num) {
return num < 10 ? "0" + num : num
}
function checkDateAndTime() {
const DATE = new Date();
const week = ["ВС", "ПОН", "ВТ", "СР", "ЧТ", "ПТ", "СУБ"];
let date = [DATE.getFullYear(), checkAddZero(DATE.getMonth() + 1), checkAddZero(DATE.getDate())]
let time = [checkAddZero(DATE.getHours()), checkAddZero(DATE.getMinutes()), checkAddZero(DATE.getSeconds())]
electricDate.innerHTML = date.join("-") + " " + week[DATE.getDay()];
electricTime.innerHTML = time.join(":");
}
document.querySelector("input[type='text'][disabled='disabled']")
<Placemark geometry={mapTarget ? mapTarget : geoCord}
options={{draggable: true}}
onDragEnd={e => changeMapTarget(e.get('target').geometry.getCoordinates())}
onClick={e => changeMapTarget(e.get('target').geometry.getCoordinates())}