This is a quick method of how to find the Day of the Week given the Date, Month Year
The steps are:
1. Take last 2 digits of year, take '92' for 1992
2. multiply by 5 -> 92*5
3. divide by 4 -> 92*5 / 4
4. erase decimal -> remove the decimal in the previous result
5. add month code
6. add date
7. divide by 7, take the 1st decimal point and use the Day Code below to look up the Day
Month Code
1 j
4 f
4 m
0 a
2 m
5 j
0 j
3 a
6 s
1 o
4 n
6 d
Day code
1 Sun
2 Mon
4 Tue
5 Wed
7 Thu
8 Fri
0 Sat
The steps are:
1. Take last 2 digits of year, take '92' for 1992
2. multiply by 5 -> 92*5
3. divide by 4 -> 92*5 / 4
4. erase decimal -> remove the decimal in the previous result
5. add month code
6. add date
7. divide by 7, take the 1st decimal point and use the Day Code below to look up the Day
Month Code
1 j
4 f
4 m
0 a
2 m
5 j
0 j
3 a
6 s
1 o
4 n
6 d
Day code
1 Sun
2 Mon
4 Tue
5 Wed
7 Thu
8 Fri
0 Sat
No comments:
Post a Comment