Date Calculator

Count signed calendar days and weeks between a start date and an end date.

Reset

Understanding dates and durations

Almost every plan in life is a date with a number of days attached: a deadline is so many days away, a notice period is so many days long, a holiday is so many days from now. Counting those days by hand is slow and error-prone, because the calendar refuses to be regular — months run 28 to 31 days, February changes length every four years, and a span that crosses a year boundary hides its length behind two different years. A one-day error in a notice period or a visa window is not a rounding error; it can be the difference between on time and too late.

Formula and method

Days = end date − start date
Weeks = days ÷ 7

The calculation is a subtraction of dates, not of numbers: The count starts at the start date and counts each calendar day up to, but not including, the end date. So from 14 February to 15 February is 1 day, not 2. The dates are compared as midnight UTC values, which avoids daylight-saving hour changes adding or removing an hour from the count. The weeks figure is the days divided by seven, shown to two decimal places — it is a conversion of the day count, not a count of whole weeks. Inclusive count: some contracts and notice periods count both the start and the end date. If your rule counts both ends, add 1 to the result. Negative results: if the end date is before the start date, the result is negative — the number of days is the same, with a minus sign showing the direction. A result of −251 days means the end date was 251 days before the start date. Leap years: 29 February is counted whenever it falls inside the span, automatically. No adjustment is needed.

Worked example

Example 1 — 14 February 2026 to 23 July 2026 Count the days: February has 28 days in 2026, so from 14 February to 23 July is 159 days. In weeks: 159 ÷ 7 = 22.71 weeks. If a contract counts both the start and end dates, the inclusive count is 159 + 1 = 160 days.