function getNextWorkingDay(currentDate) {
const holidays = {
""
}
const date = new Date(currentDate);
date.setDate(date.getDate() + 1);
if (date.getDay() === 6) {
date.setDate(date.getDate() + 2);
} else if (date.getDay() === 0) {
date.setDate(date.getDate() + 1);
}
const nextWorkingDay = date.toLocaleDateString("zh-CN", {
year: "numeric",
month: "2-digit",
day: "2-digit"
});
return nextWorkingDay;
}
const currentDate = new Date();
const nextWorkingDay = getNextWorkingDay(currentDate);
console.log(nextWorkingDay);