To display the day and month of the following Monday, use the code
var d = new Date(); var monthNames = new Array("Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь"); d.setDate(d.getDate() + (1 + 7 - d.getDay()) % 7); var date = d.getDate() + ' - ' + monthNames[d.getMonth()]; For example, when entering page 10 or February 13, the date variable will be “13 - February”. If to come on February 14, then in the date variable there will be "20 - February". How to display the date of the new Monday not on Tuesday, but on Monday after 19 hours?
The problem is that setDate takes a number from 1 to 31. And it is not clear how to transfer 19 hours.