how to determine if date is weekend in javascript -
if have date coming function, how can tell if weekend day?
var day = yourdateobject.getday(); var isweekend = (day == 6) || (day == 0); // 6 = saturday, 0 = sunday
if have date coming function, how can tell if weekend day?
var day = yourdateobject.getday(); var isweekend = (day == 6) || (day == 0); // 6 = saturday, 0 = sunday
Comments
Post a Comment