Skip to content

Instantly share code, notes, and snippets.

@afanasy
Created December 28, 2011 10:13
Show Gist options
  • Save afanasy/1527440 to your computer and use it in GitHub Desktop.
Save afanasy/1527440 to your computer and use it in GitHub Desktop.
Thanksgiving date for the given year
new Date(year, 10, 28 - (new Date(year, 10, 1).getDay() + 2) % 7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment