Narzędzia codzienne

Date Duration Calculator

Measure the calendar span between two dates as days, weeks, and years/months/days, including leap years.

Date Duration Calculator workspace

Jak używać

Pick a start and end date. Optionally include the start day in the day count. Calculate shows total days, whole weeks, and a calendar breakdown.

Przykład

Inclusive start is optional. Inverted ranges (end before start) are an error, not a negative duration.

Wejście

2024-02-28 to 2024-03-01

Wyjście

2 days, 0 weeks remainder noted, calendar 0 years 0 months 2 days

Jak to działa

Dates are parsed as calendar Y-m-d values. Day counts use date differences, not milliseconds divided by 86400000, so leap days are included when they fall in the range.

Częste błędy

  • End before start Swap the dates. Negative spans are not returned.
  • 29 February was rejected That year is not a leap year.
  • You expected business days only This tool counts calendar days, including weekends.

Ograniczenia

Time of day and time zones are ignored. Legal deadlines that exclude holidays need a different tool.

Prywatność

The text you paste is processed in your browser. PepsTools does not receive it, store it, or send it to another service.

Pytania

Does 2024-02-28 to 2024-03-01 include the leap day?

Yes. The span is 2 days because 29 February 2024 exists.