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
| function getMonday() { | |
| d = new Date(); | |
| var day = d.getDay(), | |
| diff = d.getDate() - day + (day == 0 ? -6 : 1); | |
| return new Date(d.setDate(diff)); | |
| } | |
| function getFriday() { | |
| let monday = getMonday(); | |
| return new Date(monday.setDate(monday.getDate() + 4)); |
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
| \_ヘ(◕‿◕✰) | |
| \_ヘ(ω`*) | |
| \(★^∀^★)/ |
OlderNewer