Last active
September 28, 2020 11:57
-
-
Save scsskid/b5b01e8066724a2252fea3381a6a01b5 to your computer and use it in GitHub Desktop.
[Date get Monday as 0th day]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const date = new Date(); | |
date = (date.getDay() + 6) % 7 | |
// src: https://stackoverflow.com/a/24481597/2823589 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment