Kadben

Date calculator

Find how far apart two dates are in days, weeks, months and years, or which date comes a number of days, weeks, months or years before or after another. Month ends and leap years follow the rules stated below, with the weekday and ISO week of each date.

Runs in your browser. Nothing is uploaded.

Date calculator

Calculate

    How to use it

    1. Choose “Difference between two dates” or “Add or subtract”.
    2. Pick the dates, or press “Today”.
    3. To add or subtract, choose plus or minus and type the years, months, weeks and days.
    4. Read the result; it changes as you type.

    Rules and limits

    How dates are counted

    Tested limits

    Questions and answers

    Why is 31 January plus one month 28 February?

    February has no 31st, so the date moves to the last day that exists. Adding a month to the end of a month thus keeps you in the next month instead of spilling into March, as calendar programs and Python’s dateutil do.

    Why does counting back give a different answer than counting forward?

    Months differ in length. From 29 February 2024 to 28 February 2025 is one whole year, but counting back from 28 February 2025 the months end on 28 March 2024 and 28 days are left, so the page shows 11 months and 28 days.

    Is the end date included?

    The day count goes from the first date to the second, so 1 to 2 March is one day. If you count both days, as for a period of leave, read the line “Counting both dates”.

    Is anything sent anywhere?

    No. The calculation runs in your browser and the page sends nothing. The dates are kept only in this tab, like other tools’ options.

    Related tools