day of the week calculator

Homepage › Forums › General › day of the week calculator

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #66998
    evasingle
    Participant

    Hello, stranger!

    Article about day of the week calculator:

    | Street Science
    How would it be if you were able to calculate day of the week for any date? With a little bit of math and logic, anything is possible! How To Calculate Day Of The Week For Any Date?

    ENTER TO THE SITE

    How would it be if you were able to calculate day of the week for any date? With a little bit of math and logic , anything is possible! Before you start celebrating, be warned that this technique requires a little bit of effort and practice upfront. But once you understand it and have enough practice, you’ll be pulling off magic-trick-like performances in front of your friends at parties. The algorithm that I will be demonstrating in this essay is called the Doomsday algorithm and was originally proposed by John Conway in 1973 (link in the references section at the end of the essay). Conway, in turn, had simplified a rule proposed by Lewis Carrol in 1872 to arrive at this algorithm. The Doomsday algorithm is split into three significant steps: 1. Computing the Doomsday for a given date’s century year . 2. Computing the Doomsday for the specific year of the given date. 3. Computing the precise day of the week for the given date. Let us begin by defining what a ‘Doomsday’ is. Defining Doomsdays. To keep things clean and defined upfront, I will be using the following date format throughout this essay: DD/MM/YYYY (Day/Month/Year). Furthermore, I will be demonstrating the Doomsday algorithm for the Gregorian calendar only (used post-September 1752). From this definition, it becomes clear that the date is comprised of three elements: the day, the month, and the year. Conway defines a Doomsday for any given year as the day of the week on which the last day of February falls . The Doomsday algorithm then goes on to take advantage of the fact that there are several significant dates in each month of each year that fall on the same day. In short, if we know on which weekday the last day of February (of a particular year) falls, we know a whole bunch of (more or less) equally spaced dates throughout the year that fall on the same day. Based on this, we could compute the day of the week for any date on that year using simple addition and/or subtraction. But how do we know on which day of the week the last date of February falls? Well, before we answer that question, let us establish the relationships between the various Doomsdays distributed throughout the year. List of Doomsdays Throughout Any Given Year. Let us start with the low hanging fruits first: January and February: January 32nd does not exist in reality (it’s February 1st), but Conway recommends this style of thinking as he feels that it is easier for us to remember the logic. Next up, we have the even months of the year . These are pretty easy, as given by the list below: The odd months of the year are a little trickier but follow a simple logic nonetheless. For any odd month numbered ’n’, the Doomsday is given by n +/- 4 . For odd months that are long (31 days), the Doomsday is given by n + 4. For odd months that are short (30 days — September and November only), the Doomsday is given by n-4. To sum up, the comprehensive Doomsday list one needs to remember looks as follows: Once you have this list, you could always add or subtract multiples of 7 to arrive at other doomsdays for the respective year. Example Calculation. Let us say that we are interested in calculating the day of the week for the date: 30/10/2022. Assume that someone tells us that Doomsdays for the year 2022 occur on Mondays. Based on this information, we could say that the date 10/10/2022 occurs on a Monday. This is because we know that 10/10/2022 is a Doomsday as well. By adding 14, we arrive at the next Doomsday as 24/10/2022. By adding 6 to this date, we arrive at Sunday (Monday + 6) as the answer for 30/10/2022 . But hang on a minute! I was able to do that only because I knew the Doomsday for 2022 (Monday). How do we figure that part out? Right, onward to that question we march. Computing Doomsday for Any Given Century. Tostart, one needs to just remember that the years 0, 400, 800, 1200, 1600, … are all Tuesdays. Basically, the Doomsdays for all years that are multiples of 400 occur on Tuesdays . For every century after a multiple of 400, Doomsday is retarded by 2 days . For instance, 2000 is a multiple of 400. So, we could directly say that the Doomsday for this century occurs on a Tuesday as well. On the other hand, 1900 is 300 years (3 centuries) after 1600 (the previous multiple of 400). So, we subtract 6 from Tuesday (2*3) to arrive at Wednesday as the answer. So far, we have means of computing the Doomsday for any given century year. But what about the years in between two centuries? That is pretty much the final piece of the puzzle we need to solve. Computing Doomsday for Any Year Within the Century. Let us say that we have already computed the Doomsday for a given century. Each ordinary year has its Doomsday 1 day later than the previous year, and each leap year 2 days later. We could use this to our advantage by splitting each century into multiples of 12. Such a division would lead to 12, 24, 36, 48, 60, 72, 84, and 96. Say that we are interested in Doomsday for 2012. We know that the Doomsday for 2000 occurs on a Tuesday (based on our ‘Doomsday for any century’ logic). For any given 12 years (a dozen years), there are a total of 12/4 = 3 leap years . So, for each dozen years, the Doomsday is shifted by (12+3) = 14 + 1 = 1 day. consequently, we add 1 day to Tuesday to arrive at Wednesday as the Doomsday for 2012 . How To Calculate Day of the Week for Any Date. We have finally arrived at the point where we are ready to calculate the day of the week for any date. To show off, let us consider the following date: 20/06/3075 . That’s right! This algorithm can be used to calculate the day of the week for future dates as well! Firstly, let us compute the Doomsday for the century. 3000 occurs 2 centuries after 2800, which is the previous closest multiple of 400. So, for 2800, the Doomsday is Tuesday. For each century after that, we retard Tuesday by 2. Therefore, we subtract 4 from Tuesday to arrive at Friday as the Doomsday for 3000. Next, we need to calculate the Doomsday for 3075. We know that 12*6 = 72 and 75 = (12*6) + 3. So, we need to add (6+3) days to Friday (the Doomsday for 3000). Furthermore, the number of 4s in 3(75–72 = 3) is zero. This means that there will be 0 leap years from 3072 to 3075. Consequently, we could calculate the Doomsday for 3075 as follows: Doomsday for 3075 = Friday + (6+3) + 0 = Friday + 9 = Friday + 7 + 2 = Friday + 2 = Sunday!

    Weeks from date to date calculator

    Day and week counter

    Years months weeks days hours minutes seconds calculator

    Calculate 16 weeks from date

    Find out what day of the week you were born

    Date calculator weeks

    Date to date week calculator

    Week to day calculator

    #67188
    fafoye
    Participant

    Ich suchte neulich gezielt nach neuen Möglichkeiten für Slots online, während ich am Neuenburgersee im Jura entspannte. Meine bisherige Bilanz war eher rot und ich war kurz davor, mein Hobby an den Nagel zu hängen. Auf roll dorado fand ich dann die nötige Abwechslung. Eine geschickte Casino Wette beim Poker änderte alles. Ich habe nicht nur meine Verluste getilgt, sondern stehe jetzt finanziell viel besser da. Es ist ein faires und spannendes Erlebnis dort.

    #75133
    Steve9441
    Participant

    VATCalculator.ai provides simple and convenient tools to help individuals and businesses calculate VAT accurately and understand important VAT requirements. The platform offers useful guidance for anyone researching how much to be vat registered, including information about the vat registration threshold and vat registration threshold uk. Users can also explore topics such as the hmre vat threshold and uk vat registration limits to better understand UK VAT obligations. For businesses operating in Saudi Arabia, the website also provides helpful information about ksa vat registration and vat registration ksa. With easy-to-use resources and practical VAT information, VATCalculator.ai makes managing VAT calculations and registration requirements more straightforward.

    #81022

    I find day-of-the-week calculators useful for quickly checking dates, planning events, and looking back at important moments in the calendar. While exploring ways to make everyday calculations easier, I also recommend Math Wizard, a helpful resource for improving mathematical understanding through free worksheets, worked solutions, and specialist maths tuition. It is a useful place to explore when you want to go beyond simple calculations and build stronger maths skills.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Scroll to Top