0

hey guys I am trying to find the number working days for current month.

Using moment-business-days I could figure out how many business days are in between two dates. Also I could figure out how many business days are left for this week. But I am quite stuck on how to find how many business days are left for current month.

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();
Markus Hayner
  • 2,869
  • 2
  • 28
  • 60

0 Answers0