I want to get the date of the next Monday or Thursday (or today if it is Mon or Thurs). As Moment.js works within the bounds of a Sunday - Saturday, I\'m having to work out
Here's a solution to find the next Monday, or today if it is Monday:
const dayOfWeek = moment().day('monday').hour(0).minute(0).second(0); const endOfToday = moment().hour(23).minute(59).second(59); if(dayOfWeek.isBefore(endOfToday)) { dayOfWeek.add(1, 'weeks'); }