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

resizing Telegram inline keyboard -

javascript - How to bind ViewModel Store to View? -

javascript - Solution fails to pass one test with large inputs? -