A

David

Darling

Zeller's formula

Zeller's formula is a formula invented by the German clergyman Christian Zeller (1824–1899) for figuring out the day of the week of a given date, without the need of tables. Let

 

J be the century-number,
K the remaining part of the year-number,
e the residue, which remains when J is divided by 4,
m the number of the month,
q the day of the month,
h the number of the day of the week.

 

Then h is the remainder that results when

 

    h = q + 26(m + 1)/10 + K + K/4 – 2e

 

is divided by 7. For the formula to work, January and February have to be taken as months 13 and 14 of the preceding year. For example, Frederick the Great was born on 24 January 1712, so J = 17, e = 1, K = 11, m = 13, and q = 24. Plugging these values into the formula, we get

 

    24 + 26(13 + 1)/10 + 11 + 11/4 - 2 × 1 = 71 = 70 × 1 + 1.

 

The remainder h is 1, so Frederick the Great was born on the first day of the week, Sunday.