Skip to content

Instantly share code, notes, and snippets.

@oguzhancvdr
Created October 22, 2022 19:52
Show Gist options
  • Save oguzhancvdr/580bf80dc2da03bdaa4bf3779701c6be to your computer and use it in GitHub Desktop.
Save oguzhancvdr/580bf80dc2da03bdaa4bf3779701c6be to your computer and use it in GitHub Desktop.
const isWeekday = (date) => date.getDay() % 6 !== 0;
isWeekday(new Date());
@oguzhancvdr
Copy link
Author

Check if a day is a working day

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment