Tool to compute interval difference between two dates. Calculation of the number of days between two dates in order to estimate the length of a period.

dCode is free and its tools are a valuable help in games, puzzles and problems to solve every day! You have a problem, an idea for a project, a specific need and dCode can not (yet) help you? You need custom development? Contact-me!

Tool to compute interval difference between two dates. Calculation of the number of days between two dates in order to estimate the length of a period.

Answers to Questions

How to calculate the number of days between two dates?

Calculation is made with the exact number of days between two dates, without counting the day itself.

Example: A child born on the 2000-01-01, is 2 days old on the 2000-01-02 but the calculator will state that there is only 1 day between 1st January and 2nd January.

Calculation takes into account the Gregorian Calendar and the Julian one before 1582.

How to understand a difference between two dates?

Depending on the way of thinking, there are multiple answers

Example: Between tuesday and wednesday, how many days are there? Answer 0 : Between the day of tuesday and the days of webdnesday there are zero day. Answer 1 : From tuesday to wednesday, it takes one day (This is dCode answer). Answer 2 : A journey beginning tuesday and finishing wednesday is 2 days long.

How to calculate an age in number of days?

Calculate the difference between the date of birth and today.

Ask a new question

Source code

dCode retains ownership of the source code of the script Difference between 2 Dates online. Except explicit open source licence (indicated Creative Commons / free), any algorithm, applet, snippet, software (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt, encrypt, decipher, cipher, decode, code, translate) written in any informatic langauge (PHP, Java, C#, Python, Javascript, Matlab, etc.) which dCode owns rights will not be given for free. To download the online Difference between 2 Dates script for offline use on PC, iPhone or Android, ask for price quote on contact page !