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!

This page is using the new English version of dCode, please make comments !

Tool to compute interval 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: If I am born on the 2000-01-01, I am 2 days old on the 2000-01-02 but 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: For example, between tuesday and wednesday, how many days are there?

Example: Answer 0 : Between the day of tuesday and the days of webdnesday there are zero day.

Example: Answer 1 : From tuesday to wednesday, it takes one day (This is dCode answer).

Example: Answer 2 : A journey beginning tuesday and finishing wednesday is 2 days long.

Ask a new question

Source code

dCode retains ownership of the source code of the script Difference between 2 Dates. 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, etc.) which dCode owns rights can be transferred after sales quote. So if you need to download the Difference between 2 Dates script for offline use, for you, your company or association, see you on contact page !

dCode uses cookies to customize the site content, analyze user behavior and adapt dCode to your use. Some data is stored and collected for advertising purposes and may be shared with our partners. OK