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.
January | 0 |
February | 3 |
March | 3 |
April | 6 |
May | 1 |
June | 4 |
July | 6 |
August | 2 |
September | 5 |
October | 0 |
November | 3 |
December | 5 |
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.
Sunday | 0 |
Monday | 1 |
Tuesday | 2 |
Wednesday | 3 |
Thursday | 4 |
Friday | 5 |
Saturday | 6 |
No comments:
Post a Comment