How this calculator works
Date differences are measured at UTC midnight to avoid daylight-saving effects. The result excludes the end date: January 1 to January 2 is one day. Full weeks and remaining days are also shown.
The formula
Use the units shown beside each field. Results are calculated from the full input precision, then rounded for display; use unrounded values when doing further calculations.
Keep in mind
The end date must be on or after the start date. The end date is not counted as an additional day.
Frequently asked questions
What inputs should I use?+
Enter your values using the units shown in the field labels. The end date must be on or after the start date. The end date is not counted as an additional day.
How is the answer calculated?+
Date differences are measured at UTC midnight to avoid daylight-saving effects. The result excludes the end date: January 1 to January 2 is one day. Full weeks and remaining days are also shown. The formula is Days = (End date − Start date) / 86,400,000 milliseconds.
Are my inputs stored?+
No. Your calculator inputs and results stay in the browser and are not sent to our server. Reset restores the example inputs and clears the result.