Thread: Day/date algorithm

  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    1

    Day/date algorithm

    Several years ago I came across a simple algorithm for determining the day of the week for any specific date. It was supposed to be valid from at least as long ago as 1800, and into the distant future. I have lost this code and would appreciate it if anyone might have it available. Thank you.

  2. #2
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    It would help if you told us what programming language you wanted this in... because if you wanted it in C or C++, there would be no reason you would post it in the Tech Board!?

  3. #3
    .
    Join Date
    Nov 2003
    Posts
    307
    It's called the Doomsday Rule - here is the algorithm in English, so we avoid ober's concerns

    http://jimvb.home.mindspring.com/doom14.html

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Implement of a Fast Time Series Evaluation Algorithm
    By BiGreat in forum C Programming
    Replies: 7
    Last Post: 12-04-2007, 02:30 AM
  2. Replies: 4
    Last Post: 12-10-2006, 07:08 PM
  3. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM