logoalt Hacker News

Show HN: How to Mentally Calculate the Day of the Week for Any Date

27 pointsby yang140today at 2:57 PM5 commentsview on HN

Comments

zeechtoday at 9:33 PM

Cool site! When I do this trick I prefer using Bob Goddard's 'first Sunday' method [0]. It minimises the number of operations you need to do and makes it so you only need to keep track of one running total.

[0] https://firstsundaydoomsday.blogspot.com/2009/12/quick-start...

seanhuntertoday at 5:19 PM

It's pretty bad form to give the doomsday algorithm and not give credit to John H. Conway who invented it. https://en.wikipedia.org/wiki/Doomsday_rule

show 1 reply