Merge commit '74f308743d863267e55bd8de64173bf070148280'

This commit is contained in:
Dobromir Popov
2024-04-13 19:19:01 +03:00
2 changed files with 3 additions and 1 deletions

View File

@ -249,6 +249,8 @@ exports.getDateFromWeekNrAndDayOfWeek = function (firstMonday, weekNr, dayOfWeek
}
exports.getMonthDatesInfo = function (date) {
// cast to date if not daate
date = new Date(date);
// get first day of the month
var firstDay = new Date(date.getFullYear(), date.getMonth(), 1);
// get first day of next month