back to programming


Elapsed Days Calculator


Description

This is a utility to find the number of elapsed days between two dates. It will also calculate the day of the week on which a particular date falls.


Enter a start date (dd/mm/yyyy) where yyyy >= 0:



Enter an end date (dd/mm/yyyy) where yyyy >= 0:






The answer is:

How it works

The calculations are made according to the Gregorian calendar, using the Javascript language, and the dates are checked for validity. The Gregorian calendar replaced the Julian calendar in Britain in the year 1752. By the Gregorian calendar a given year is a leap year if it is divisible by 4, but not if it is also divisible by 100 unless it is also divisible by 400.


Download

Source code - Right click on link and choose 'Save Link as... option.


Compatability

Any operating system using a web browser with Javascript enabled


back to programming