Last active
March 18, 2018 17:33
-
-
Save StevenKowalzik/0bf9d5b6e587959267d87c8d660e406a to your computer and use it in GitHub Desktop.
Get Today if weekday, if not get monday
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
const getToday = () => (new Date().getDay() != 0 && new Date().getDay() != 6) ? new Date().getDay() : 1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment