Data JS to weekend

var day = yourDateObject.getDay();
var isWeekend = (day === 6) || (day === 0);    // 6 = Saturday, 0 = Sunday
just-saved-you-a-stackoverflow-visit