Formula
Day difference = (end date at UTC midnight − start date at UTC midnight) ÷ 86,400,000 milliseconds.
Time & Date
Count the calendar days between two dates using year, month and day inputs.
Calculator
Day difference = (end date at UTC midnight − start date at UTC midnight) ÷ 86,400,000 milliseconds.
This is the method behind the answer, so the result can be checked rather than simply trusted.Result: 30 days. Assumption: The start date is not counted as a full elapsed day.
Day difference = (end date at UTC midnight − start date at UTC midnight) ÷ 86,400,000 milliseconds.
15 May to 14 June spans 30 elapsed midnights. Counting the start date inclusively would produce 31 calendar dates touched, which is a different question.
Contracts, subscriptions, visas and legal deadlines may use inclusive counting or local close-of-business rules. Confirm the rule before relying on a date count for compliance.
Inputs use numeric year, month and day fields to avoid ambiguity between DD/MM and MM/DD formats.
Methodology & Accuracy
CalculationTime pages are built around visible arithmetic: the formula, assumptions, worked example and practical limitations are shown so the result can be checked rather than simply trusted.
Day difference = (end date at UTC midnight − start date at UTC midnight) ÷ 86,400,000 milliseconds.
Inputs use numeric year, month and day fields to avoid ambiguity between DD/MM and MM/DD formats.
Where a calculator follows a named legal, trade or industry standard, that standard is cited visibly. Otherwise the page uses transparent general arithmetic and states its limits.Contracts, subscriptions, visas and legal deadlines may use inclusive counting or local close-of-business rules. Confirm the rule before relying on a date count for compliance.
No. It measures elapsed days. Inclusive calendar counting is a separate convention.
UTC midnight avoids daylight-saving changes adding or removing an hour from a local day calculation.
Yes. Use the related business days calculator when you need Monday-to-Friday weekday counting instead of elapsed calendar days.