Calculate the weekday of any date in any month,
year and century very easily. All you have to do is to follow the instructions
in every step carefully.
STEP1: -
|
|
Write down the following: - |
The year (last two digits only).
The date.
The code of the month (from table 2).
The century code (from table 1).
Explanation: -Divide the first two digits of the year by 4 and according to the remainder see the corresponding century code.
The leap year before the given year (last two digits)/4.
Explanation: -Take the leap year, which is, just before the given year and divide it by 4.
STEP2: -
|
|
Add all the numbers and also add 1 (one) if the given year is a leap year and the month is after February. |
STEP3: -
|
|
Now divide, the result by 7 and according to the remainder see table-3 and know the weekday of the given day. |
NOTE: -
|
|
Century years are years in which the last two digits are 00. |
|
|
Leap years are the years that are divisible by 4. |
|
|
Century years must be divisible by 400 to be leap years. For example,1900,1800,2100 are not leap years but 2000,2400 are leap years. |
|
|
Even if the given year is a leap year the previous leap year must be taken for calculation in step1. |
|
|
If the year is a century year then there is no need to take the previous leap year for calculation. |
|
|
In table-1 if the remainder is 0 &year is a century year then the century code must be taken as 6. If the remainder is 0 & the year is not a century year, then the century code must be taken as 0. That is for example 2000 century code is 6 and 2075 century code is 0. |
TABLE-1
|
REMAINDER FORMED WHEN THE FIRST 2 DIGITS OF THE YEAR ARE DIVIDED BY 4 |
CENTURY CODE |
|
0 |
0 or6 |
|
1 |
5 |
|
2 |
3 |
|
3 |
1 |
TABLE-2
MONTH |
CODE |
|
January, October |
6 |
|
May |
0 |
|
August |
1 |
|
February, March, November |
2 |
|
June |
3 |
|
September, December |
4 |
|
April, July |
5 |
TABLE-3
|
REMAINDER FORMED WHEN THE RESULT IS DIVIDED BY 7 |
WEEKDAY
|
|
0 |
Sunday |
|
1 |
Monday |
|
2 |
Tuesday |
|
3 |
Wednesday |
|
4 |
Thursday |
|
5 |
Friday |
|
6 |
Saturday |