Skip to content

Instantly share code, notes, and snippets.

@StevenKowalzik
Last active March 18, 2018 17:33
Show Gist options
  • Save StevenKowalzik/0bf9d5b6e587959267d87c8d660e406a to your computer and use it in GitHub Desktop.
Save StevenKowalzik/0bf9d5b6e587959267d87c8d660e406a to your computer and use it in GitHub Desktop.
Get Today if weekday, if not get monday
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