javascript - Use jQuery/JS to determine the DAY OF WEEK -
Is there any way to use either JavaScript or jQuery to determine what is the day of the week? For example, if a user raises the box, then he is Sunday, I can alert him.
Thanks
new date (). GetDay (); // 0 = Sun, 1 = Som, ..., 6 = Saturn
Also see: On MDN.
Word of caution: This gives the day of the week on the browser because the earth is not flat, for some users, the weekdays may vary from day to day for your server Are there. Whether it can be relevant to your project ...
If you are doing a lot of work, you can see the library of the JavaScript date or
Comments
Post a Comment