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 -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -