Skip to content

Instantly share code, notes, and snippets.

@scsskid
Last active September 28, 2020 11:57
Show Gist options
  • Save scsskid/b5b01e8066724a2252fea3381a6a01b5 to your computer and use it in GitHub Desktop.
Save scsskid/b5b01e8066724a2252fea3381a6a01b5 to your computer and use it in GitHub Desktop.
[Date get Monday as 0th day]
const date = new Date();
date = (date.getDay() + 6) % 7
// src: https://stackoverflow.com/a/24481597/2823589
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment