Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js date is weekend

var day = yourDateObject.getDay();
var isWeekend = (day === 6) || (day === 0);    // 6 = Saturday, 0 = Sunday
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #date #weekend
ADD COMMENT
Topic
Name
5+5 =