Tuesday, October 25, 2011

How to Find Any Particular Day From the Given Date !!!


There is mathematical calculation involved in it. Simply follow the below given 5 steps to find the day for any given date from years 1752 to 2099.
Take the last two digits of the year and add 1/4 of it to the same. Ignore the remainder.
Let's take 14 Nov, 1977 as an example. Take last two digits of year i.e. 77. 1/4 of it is 19.25. Ignore 0.25 and add 19 to 77. The answer is 96 (77 + 19).

Add the given day of the month to it.
The answer is 110 (96 + 14).

Now, add the month value to it. Month values are as given below:
·         January - if Leap Year then 0 else 1
·         February - if Leap Year then 3 else 4
·         March - 4
·         April - 0
·         May - 2
·         June - 5
·         July - 0
·         August - 3
·         September - 6
·         October - 1
·         November - 4
·         December - 6
The answer is 114 (110 + 4)

Add the Century value as given below:
·         18th Century - 4
·         19th Century - 2
·         20th Century - 0
·         21th Century - 6
The answer is 114 (114 + 0)

Divide the answer by 7. Ignore the quotient and take the remainder. Based on the value of remainder, you can tell the day.
·         1 - Sunday
·         2 - Monday
·         3 - Tuesday
·         4 - Wednesday
·         5 - Thursday
·         6 - Friday
·         0 - Saturday
Remainder after dividing 114 by 7 is 2. Hence, it was Monday on 14 Nov, 1977
 Regards,
Karan

No comments:

Post a Comment