Answers for "js date is weekend"

0

js date is weekend

var day = yourDateObject.getDay();
var isWeekend = (day === 6) || (day === 0);    // 6 = Saturday, 0 = Sunday
Posted by: Guest on December-04-2020

Code answers related to "js date is weekend"

Code answers related to "Javascript"

Browse Popular Code Answers by Language