Created
November 8, 2019 14:06
-
-
Save stargt/0ec5cf4c578649380bfd43e11dfe3b4b to your computer and use it in GitHub Desktop.
This file contains 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
Math.floor(((new Date('2019-01-01')).getDay()*24*60*60*1000 + (new Date('2019-11-08')).getTime() - (new Date('2019-01-01')).getTime())/1000/60/60/24/7 + 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment