Determination of The Day of The Week - A Tabular Method To Calculate The Day of The Week

A Tabular Method To Calculate The Day of The Week

This method is valid for the Gregorian calendar as well as the Julian calendar. Britain and its colonies started using the Gregorian calendar on Thursday, September 14, 1752 (the previous day was Wednesday, September 2, 1752 (Old Style)). The areas now forming the United States adopted the calendar at different times depending on the colonial power: Spain and France had been using it since 1582, while Russia was still using the Julian calendar when Alaska was purchased from it in 1867.

The method requires one to know four input parameters to find four numbers to sum. Using modulus to restrict results to 0 through 6, the day of the week can be determined. Since this method uses the "zeroeth" day, we can add the day of the month directly (without subtracting 1). Examples of the evaluation of this method are below. The four inputs and four resulting summands are:

  1. Century: Where is the first two digits of the year, the first summand is to be taken from the centuries' table below based on the rule: for Gregorian dates; for Julian dates. With Sunday being day 0, each number represents the day of the week on which March 25th (Lady Day) occurs in year 0 of the century.
  2. Year: Because there are 365 days in a common year, which is 52 weeks plus 1 day, each year will start on the day of the week after that starting the preceding year. Each leap year has of course one more day than a common year. Assuming we know on which day a century starts (from above), if we add the number of years elapsed since the start of the century, plus the number of leap years that have elapsed since the start of the century, we get the day of the week on which the year starts. Where is the last two digits of the year, the second summand is to be taken from the years' table. This table makes an exception for 00 years in centuries whose first two digits are evenly divisible by 4, such as the 21st century, where year 00 (2000) was a leap year.
  3. Month: The third summand is to be taken from the months' table below. N.B.: each month is taken to start at day "zero."
  4. Day of the Month: Use the day number itself as the fourth summand, or use the value from the days' table below, based on the rule: .

Now add the summands and look up the remainder of a division by 7 in the days' table to get the Day of the week:

Read more about this topic:  Determination Of The Day Of The Week

Famous quotes containing the words method, calculate, day and/or week:

    If all feeling for grace and beauty were not extinguished in the mass of mankind at the actual moment, such a method of locomotion as cycling could never have found acceptance; no man or woman with the slightest aesthetic sense could assume the ludicrous position necessary for it.
    Ouida [Marie Louise De La Ramée] (1839–1908)

    However others calculate the cost,
    To us the final aggregate is one,
    One with a name, one transferred to the blest;
    And though another stoops and takes the gun,
    We cannot add the second to the first.
    Karl Shapiro (b. 1913)

    All day long in unrest,
    To and fro do I move,
    The very soul within my breast
    Is wasted for you, love!
    Owen Roe MacWard (d. 1849)

    [When asked: “If women voted, would they not have to sit on juries?”:] Many women would be glad of a chance to sit on anything. There are women who stand up and wash six days in the week at 75 cents a day who would like to take a vacation and sit on a jury at $1.50.
    Anna Howard Shaw (1847–1919)