top | item 36594161

How to calculate the weekday of any date in your head

13 points| bed147373429 | 2 years ago |downioads.github.io

8 comments

order

bed147373429|2 years ago

All it takes it to remember 12 single-digit numbers and reading through a blog post for 5 minutes! :)

McNutty|2 years ago

What is the year code for 1947? For 1976?

bananabiscuit|2 years ago

Do you also have to account for leap years somehow? I think on leap years you need to add one to the month code for all months except Jan and Feb.

bed147373429|2 years ago

Hi, thanks for this question! On leap years the code for January and February is decreased by 1. Everything else stays the same! I updated the blog and the Go code to take care of this.