Days between dates
- Month and day may be one or two digits. The year may be one to four digits. One and two digit years are assumed to be 20th century AD. So if the date is first century, use leading zeros, like "0064" for the year Rome burned during Nero's reign.
- The script will pop up an alert box and mark the days between dates as questionable if a date is invalid. Leap year checking is correct for both Gregorian (after 15 Oct 1582) and Julian (before) dates, except for dates before 8 A.D. From 45 B.C. to 8 A.D. leap years followed a different rule, and the current version of this script does not account for that.
- In the Julian-to-Gregorian change, 15 Oct immediately followed 4 Oct 1582. The script will not allow you to use dates in that time period, because they do not exist in countries that implemented the Gregorian calendar on the prescribed date. For other countries you're on your own.
- If you correct a date you must remember to re-calculate the days between dates for it to be valid.
- The script calculates the difference between Julian days, so it should be accurate from 1 Jan 4713 BC (Julian day zero) to 1 Jan 3268. This is from before Abraham left Ur to after the millenial reign of Christ, so it should be quite sufficient. Dates on or after 15 Oct 1582 are assumed to be in the Gregorian calendar, and dates before that in the Julian calendar.
- Thanks to Claus Tøndering (http://www.tondering.dk/claus/calendar.html) for detailed information about the Christian calendar and Julian day algorithms.
- Thanks to Jørgen Staal for the Danish translation.
- If you find errors, please forgive me and send me a note.
Last revised 3/21/2008
M. Steven Evans [ mail
home page ]