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 

Comments

Popular posts from this blog

vb.net - How to ignore if a cell is empty nothing -

Sort a complex associative array in PHP -

recursion - Can every recursive algorithm be improved with dynamic programming? -