嘿,我正在尝试查找本月的工作日数。
使用moment-business-days
,我可以算出两个日期之间有多少个工作日。我还可以算出本周还有多少个工作日。但是我很困惑如何找到本月剩余的工作日。
const diffDays = moment(secondDate).businessDiff(
moment(firstDate),
"days",
true
); // this is where I find how many business days in between two dates
// and here how many business days left this week
const daysLeftThisWeek = 6 - moment(firstDate).day();