Date get Monday as 0th day
Last active
July 29, 2020 05:38
-
-
Save scsskid/0f0c1b066bec9787e31683598a989a44 to your computer and use it in GitHub Desktop.
Date get Monday as 0th day, src: https://stackoverflow.com/a/24481597/2823589
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
(inputDate.getDay() + 6) % 7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment