Différence entre deux dates
Calculez l’intervalle précis entre deux dates en années, mois, semaines et jours.
Difference between two dates
—
Comment ça marche
- Both dates are parsed strictly (real calendar dates only; Feb 30 is rejected) and compared on the calendar, never by dividing milliseconds, so daylight saving cannot skew a count.
- The years/months/days breakdown steps forward from the earlier date using the same clamping rules as the add-months engine: Jan 31 + 1 month counts as Feb 28/29, so the parts always compose to the real elapsed time.
- Total days are reported elapsed (start exclusive) by default, with a toggle to include the end date for use cases like hotel stays.
Bon à savoir
- Enter the dates in either order: the tool reports which date is earlier and normalizes the direction.
- The weekday breakdown counts both endpoints and is only offered for spans up to about 1,000 years.
- Month lengths and leap years (including 1900 and 2100 being non-leap) are handled by the shared, unit-tested calendar engine.
Outils associés
Calculateurs de datesEn vedette
Jours entre deux dates
Comptez le nombre total de jours calendaires séparant deux dates.
Ouvrir l’outil
Calculateurs de dates
Jours jusqu’à une date
Découvrez le nombre de jours restants jusqu’à un événement ou écoulés depuis une date.
Ouvrir l’outil
Calculateurs de datesEn vedette
Calculateur d’âge
Déterminez votre âge exact en années, mois, jours et heures depuis votre naissance.
Ouvrir l’outil
Calculateurs de dates
Ajouter ou soustraire des jours
Ajoutez ou retranchez des années, des mois, des semaines et des jours à une date donnée.
Ouvrir l’outil
Foire aux questions
Why can the months part seem surprising?
Calendar months have different lengths, so “1 month” from Jan 31 lands on Feb 28/29, and day counts borrow from the previous month. The tool uses the standard calendar convention and states it.
Is the end date included?
The calendar breakdown counts elapsed time (start exclusive). The total-days figure has a toggle to include the end date when needed, such as for hotel stays.
Does it handle leap years and month ends?
Yes: February 29, non-leap centuries like 1900 and 2100, year boundaries, and month-end clamping are all handled by the core calendar engine.