<div id="today-date" class="date-style"></div>
<script>
const options = { day: 'numeric', month: 'long', year: 'numeric' };
document.getElementById('today-date').innerText = new Date().toLocaleDateString('ru-RU', options);
</script>
<style>
.date-style {
font-size: 16px;
font-weight: 400;
color: #333; /* Если хотите выделить дату определенным цветом */
}
</style> <script>
document.addEventListener("DOMContentLoaded", function() {
const dateElements = document.querySelectorAll('.js-date');
const now = new Date().toLocaleDateString('ru-RU');
dateElements.forEach(el => el.innerText = now);
});
</script>