Yes, someone actually did this and I found it running on our server
You are viewing a single thread.
View all comments 0 points
weekend = dayOfWeek > 5
0 points
*
Sunday is 1 0 and Saturday is 7 6. You just made Friday part of the weekend You forgot Sunday
0 points
0 points
I was off by one, but Sunday is 0 in javascript