Dominical letter

The dominical letter is a letter or two associated with each year that tells one which days of the year are Sundays. January 1 to 7 are always considered A to G, after which the cycle repeats to the end of the year (ignoring February 29 in leap years). Common years have one dominical letter, while leap years have two. For example, the dominical letter of the current year (2024) is.

Julian calendar
The Julian calendar repeats every 28 years.

Gregorian calendar
The Gregorian calendar repeats every 400 years.

Century leap years (those divisble by 400) always have dominical letter BA, while exceptional common years (other century years) always have dominical letter C (if the year is 100 mod 400), E (if the year is 200 mod 400), or G (if the year is 300 mod 400).