CCommunity
When finding the day without reference date then formula will be: (Century code + Year code + Month code + Date code)/7
Day Codes:
Sun = 0
Mon = 1
Tue = 2
Wed = 3
Thu = 4
Fri = 5
Sat = 6
Month Codes:
Jan = 0
Feb = 3
Mar = 3
Apr = 6
May = 1
Jun = 4
Jul = 6
Aug = 2
Sep = 5
Oct = 0
Nov = 3
Dec = 5
Century Codes:
1500 - 1599 ---> 0
1600 - 1699 ---> 6
1700 - 1799 ---> 4
1800 - 1899 ---> 2
1900 - 1999 ---> 0
2000 - 2099 ---> 6
2100 - 2199 ---> 4
2200 - 2299 ---> 2
2300 - 2399 ---> 0
Century code for 2000 is 6.
The year code can be found through (last 2 digit of year + (last 2 digit of year/4))/7. Here remainder will be 0 so year code will be 0
The code for March : 3
The code for the date will be date/7, here remainder will be 3 so code for the date will be 3
Summing up,
(6 + 0 + 3 + 3) / 7 = 5
Here remainder is 5 which is code for Friday in the below-given list to on 24th March 2006 day will be Friday.
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
0
1
2
3
4
5
6
So, the day was Friday.