There's this algorithm that works for any day of the week.
Let F = [14 - (month) / 12]
(This bit sorts out the leap year 29 Feb)
y = (year) - F
m = (month) + 12F - 2
Let X = (d + y + [31m/12] + [y/4] - [y/100] + [y/400])MOD7
The square brackets mean integer division i.e. discard all remainders. So [3/2] = 1, [10/3] = 3, and [81/82] = 0.
0 = Sunday, 1 = Monday and so on.
For July 17 2023:
F = [14 - 7 / 12] = 0
y = 2023
m = 7 + 0 - 2 = 5
d = 17
X = (17 + 2023 + [155/12] + [2023/4] - [2023/100] + [2023/400]MOD7
= (17 + 2023 + 12 + 505 - 20 + 5) MOD7
= (2542)MOD7
= 1
Therefore July 17 2023 is a Monday
2006-09-24 02:57:00
·
answer #1
·
answered by jeremykong2 2
·
0⤊
0⤋
Monday
2006-09-24 09:58:08
·
answer #2
·
answered by mawi 2
·
0⤊
0⤋
It will be on the third Monday of July month.
2006-09-24 10:00:18
·
answer #3
·
answered by Akki 1
·
0⤊
0⤋
It would be Monday.
See http://www.timeanddate.com/calendar/index.html?year=2023&country=1
2006-09-24 09:51:56
·
answer #4
·
answered by rscanner 6
·
0⤊
0⤋
A monday!
2006-09-24 09:50:27
·
answer #5
·
answered by Becka 1
·
0⤊
0⤋
It will be on a Monday
2006-09-24 09:49:53
·
answer #6
·
answered by Anonymous
·
0⤊
0⤋
nice to know this.....my birthday is also on 7/17
2006-09-24 10:00:13
·
answer #7
·
answered by Donna 6
·
0⤊
0⤋
monday
2006-09-24 09:51:13
·
answer #8
·
answered by cherrysnowcone08 4
·
0⤊
0⤋
it'll be on Monday..
2006-09-24 09:52:09
·
answer #9
·
answered by Kate 2
·
0⤊
0⤋