Skip to content

Instantly share code, notes, and snippets.

@StevenKowalzik
Last active March 18, 2018 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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