Skip to content
andcode Tools

Date Difference Calculator

🔒 Runs in your browser

Format: YYYY-MM-DD (year-month-day)
Format: YYYY-MM-DD (year-month-day)

0

calendar days

Weeks and days

—

Months and days

—

Years, months and days

—

Business days

—

Monday to Friday, counting the start date

Two ways to measure the same gap

The distance between two dates has more than one honest answer. As a plain count it is a number of days; but people also think in weeks, or in whole months, or in the "X years, Y months and Z days" a birthday or contract anniversary is described with. This calculator shows all of them at once so you can pick the one that fits the question — the exact day count and the calendar breakdown are both correct, they simply answer different things.

Business days and Romanian holidays

Business days count only Monday to Friday, including the start date and excluding the end date — the same convention spreadsheets use for a networkdays figure. Tick "Exclude Romanian legal holidays" to also drop the days off work set by the Labour Code (art. 139), including the movable ones derived from Orthodox Easter (Good Friday, the two Easter days and the two Whitsun days). A holiday that falls on a weekend is never subtracted twice.

Leap years, time zones and privacy

Dates are compared on the calendar day itself rather than by dividing elapsed milliseconds, so February 29 is counted properly and a daylight-saving clock change can never nudge a result by a day. The order of the two dates does not matter — the tool always reports the absolute distance. Everything runs in your browser as you type; no date is ever sent to a server.

Frequently asked questions

How are business days counted?

Business days are the Monday-to-Friday days between the two dates, counting the start date and excluding the end date. Tick the option to also subtract Romanian legal holidays, including the movable Orthodox Easter days.

Does the order of the dates matter?

No. The tool is order-agnostic — it always reports the absolute distance between the two dates, whichever one you enter first.

Why do the years-months-days and total-days figures differ?

Calendar months and years have different lengths, so a period is described two ways: as an exact count of days, and as whole years, months and days walked across the calendar. Both are correct; they answer different questions.

Are leap years and daylight saving handled correctly?

Yes. Dates are compared on the calendar day itself rather than by dividing elapsed milliseconds, so leap days are counted and clock changes never shift a result by a day.

Related tools

Clear local data?

This permanently erases everything this site has saved in this browser:

  • Saved audio projects (Audio Mixer autosave)
  • Project boards, cards and attachments (Kanban)
  • Your favorite tools
  • Preferences, such as your language choice

This can't be undone, and it only affects this browser on this device.