Ads
related to: day of week calculator aulis and date
Search results
Results from the WOW.Com Content Network
The basic approach of nearly all of the methods to calculate the day of the week begins by starting from an "anchor date": a known pair (such as 1 January 1800 as a Wednesday), determining the number of days between the known day and the day that you are trying to determine, and using arithmetic modulo 7 to find a new numerical day of the week.
Note: In this algorithm January and February are counted as months 13 and 14 of the previous year. E.g. if it is 2 February 2010 (02/02/2010 in DD/MM/YYYY), the algorithm counts the date as the second day of the fourteenth month of 2009 (02/14/2009 in DD/MM/YYYY format) For an ISO week date Day-of-Week d (1 = Monday to 7 = Sunday), use
The doomsday's anchor day calculation is effectively calculating the number of days between any given date in the base year and the same date in the current year, then taking the remainder modulo 7. When both dates come after the leap day (if any), the difference is just 365 y + y / 4 (rounded down).
Leap years have two letters, so for January and February calculate the day of the week for January 1 and for March to December calculate the day of the week for October 1. Leap years are all years that divide exactly by four, with the following exceptions: Gregorian calendar – all years divisible by 100, except those that divide exactly by 400.
A 50-year "pocket calendar" that is adjusted by turning the dial to place the name of the month under the current year. One can then deduce the day of the week or the date. A perpetual calendar is a calendar valid for many years, usually designed to look up the day of the week for a given date in the past or future.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Calculating_the_day_of_the_week&oldid=473328703"
Get AOL Mail for FREE! Manage your email like never before with travel, photo & document views. Personalize your inbox with themes & tabs. You've Got Mail!
The day of the week can be easily calculated given a date's Julian day number (JD, i.e. the integer value at noon UT): Adding one to the remainder after dividing the Julian day number by seven (JD modulo 7 + 1) yields that date's ISO 8601 day of the week. For example, the Julian day number of 29 December 2024 is 2460674.
Ads
related to: day of week calculator aulis and date