Easter date calculations
Sunday, February 18, 2018 •
When you create a calendar, like OOoCalendar, it’s nice, if the calendar already calculates holidays. One of the holidays, that is every year on a somewhat different date is Easter. There are many other Christian holidays that depend on the Easter day like 40 days after Easter is Ascension Day.
The book “Astronomical Algorithms” by Jean Meeus provides an algorithm, that is claimed to be valid without any exceptions from the year 1583. In 1582, there was the Gregorian calendar reform, which jumped a couple of days in October 1582. But after that, the formula should produce correct results.
It takes a couple of divisions, until you get the date. You start with the year x.
|the year x||19||-||a|
|the year x||100||b||c|
|b + 8||25||f||-|
|b - f + 1||3||g||-|
|19a + b - d - g + 15||30||-||h|
|32 + 2e + 2i - h - k||7||-||l|
|a + 11h + 22l||451||m||-|
|h + l - 7m + 114||31||n||p|
After these calculations, n is the number of the month (3 = March, 4 = April), and p+1 is the day of that month upon which Easter Sunday falls.
In general, this is the rule for finding Easter Sunday:
Easter Sunday is the first Sunday after the Full Moon that happens on or next after the March equinox.
(page 68, Astronomical Algorithms by Jean Meeus, 2nd edition)
To make the rules a bit easier (and less astronomical correct), the equinox is assumed to fall on March 21 always. In reality, it can also be one or two days earlier. Also the full moon is simplified and uses an ecclesiastical computation.
- 1991 -> March 31
- 1992 -> April 19
- 1993 -> April 11
- 1954 -> April 18
- 2000 -> April 23
- 2017 -> April 16
- 1818 -> March 22
- 2018 -> ???
Try it out…
Here’s the JS snippet: