Doomsday Rule

An algorithm to know the day of the week for a given date (method valid for dates from 1800s to 2000s)

How can you quickly and accurately calculate the day of the week associated with a specific date? Use the following calculations:

A small paragraph to emphasis and show important bits.

  • This is a list item
  • So is this - there could be more
  • Make sure to style list items to:
    • Not forgetting child list items
    • Not forgetting child list items
    • Not forgetting child list items
    • Not forgetting child list items
  • A couple more
  • top level list items

Don't forget Ordered lists:

  1. Start by taking the last two digits of the year, this is your startingNumber.
  2. Divide the startingNumber by four and ignore the remainder.
  3. Add the result to startingNumber.
  4. Find the month code:
  5. Make sure to style list items to:
    1. Not forgetting child list items
    2. Not forgetting child list items
    3. Not forgetting child list items
    4. Not forgetting child list items
  6. In leap years, subtract one from the month code for January and February.
    Find if the year is leap. (Century years must divisible by 400, non-century year, last two digits must divisible by 4)
  7. Add the month code number.
  8. Add the day of the month.
  9. If year is in 2000s subtract 1, if year is in 1800s add 2.
  10. Find the remainder of dividing the total by 7.
  11. Find the day of the week according to the day codes. Starting Saturday: 0, Sunday: 1, ... , Friday: 6

Wikipedia Page
  • Single-line item
  • Single-line item
  • Single-line item

2 lined list

  • Two-line itemSecondary text
  • Two-line itemSecondary text
  • Two-line itemSecondary text

Grouped lists

List 1

  • line item
  • line item
  • line item

List 2

  • line item
  • line item
  • line item

List seperator

  • Item 1 - Division 1
  • Item 2 - Division 1
  • Item 1 - Division 2
  • Item 2 - Division 2
  • Single-line item
  • Single-line item
  • Single-line item
radio
checkbox
test 1
  • Fruit
  • PotatoLink
  • Pasta
  • Pizza
test 2
  • Line item
  • Line item
  • Line item
test 3
  • Dog Photos9 Jan 2018
  • Cat Photos22 Dec 2017
  • Potatoes30 Noc 2017
  • Carrots17 Oct 2017