Monday, 9 April 2012

Day Of the Week

Day of the Week:
January has 31 days. It means that every date in February will be 3 days later than the same date in January(28 is 4 weeks exactly). The below table is calculated in such a way. Remember this table which will help you to calculate.
January0
February3
March3
April6
May1
June4
July6
August2
September5
October0
November3
December5

Step1: Ask for the Date. Ex: 23rd June 1986
Step2: Number of the month on the list, June is 4.
Step3: Take the date of the month, that is 23
Step4: Take the last 2 digits of the year, that is 86.
Step5: Find out the number of leap years. Divide the last 2 digits of the year by 4, 86 divide by 4 is 21.
Step6: Now add all the 4 numbers: 4 + 23 + 86 + 21 = 134.
                                                     month code + date + year + (year/4)


if it is leap year then add (year/4-1) instead of (year/4)





Step7: Divide 134 by 7 = 19 remainder 1.  that's the day code
The reminder tells you the day.
Sunday0
Monday1
Tuesday2
Wednesday3
Thursday4
Friday5
Saturday6
Answer: Monday

No comments:

Related Posts Plugin for WordPress, Blogger...