what was the day of the week on 17th june, 1998?
What was the day of the week on 17th June, 1998?
Answer:
To determine the day of the week for a specific date like June 17, 1998, we can use the Zeller’s Congruence formula.
The Zeller’s Congruence formula is:
h = q + \left\lfloor\frac{13(m + 1)}{5}\right\rfloor + K + \left\lfloor\frac{K}{4}\right\rfloor + \left\lfloor\frac{J}{4}\right\rfloor - 2J
where:
- h is the day of the week (0 = Saturday, 1 = Sunday, 2 = Monday, …, 6 = Friday)
- q is the day of the month
- m is the month (3 = March, 4 = April, …, 12 = December; January and February are counted as months 13 and 14 of the previous year)
- K is the year of the century (year % 100)
- J is the zero-based century (actually ⌊ year/100 ⌋)
- ⌊ … ⌋ represents the floor function
Now, for June 17, 1998:
- q = 17
- m = 4 (since June is the 4th month)
- K = 98
- J = 19 (1998 is in the 19th century)
By applying these values to the formula, we can calculate h. After the calculation, if h equals 0, then the day is Saturday, h = 1 is Sunday, h = 2 is Monday, and so on.