I want to check, if the date of a "wh"-Object is NOT a Saturday or Sunday.
this.state.workingHours.map((wh) => {
if (wh.date.getDay() !== 6 || wh.date.getDay() !== 0) {
console.log(
"goes in",
this.context.dateService.format(wh.date, "EEEE")
);
}
});
In my console output, it looks like: goes in Wednesday goes in Thursday goes in Friday goes in Saturday goes in Sunday goes in Monday ...
Why does the date comparison not work?