ToolCabana

Calculadora de diferença de datas

Compare datas de calendário em anos, meses e dias.

Favorites are saved in this browser. Find them in My favorites.

Calculadora de diferença de datas

Instant results · processed in your browser
Update results automatically as you type or change settings. Turn off to run manually.Clear your input, files and result, and restore the default settings.

Your result appears here

Adjust the values to see your result automatically.

Como usar Calculadora de diferença de datas

The Date difference calculator takes a start date and an end date and returns the gap as years, months and days, plus total days and total weeks to two decimals. By default the end date is not added as an extra day; switch on Count both start and end dates to include it. Times and time zones are not used.

  1. Ajuste os valores; um resultado inicial é calculado a partir dos padrões.
  2. Altere as configurações básicas ou abra o modo avançado para refinar o resultado.
  3. Revise e copie ou baixe seu resultado. Pause os resultados ao vivo para executar manualmente. Fontes ou configurações individuais acima de 20,000 caracteres exigem uma execução explícita.

O que esta ferramenta suporta

Compare datas de calendário em anos, meses e dias.

Data de início
Set this value for your task.
Data de fim
Set this value for your task.
Contar datas de início e fim
Set this value for your task.

Limites e processamento

Use números finitos, datas válidas e os intervalos mostrados por cada controle. Valores inválidos produzem um erro sem resultado baixável.

Perguntas frequentes

How many days are between two dates?

Enter both dates and read Total days. It counts calendar days from the start date to the end date without counting the end date. To count both dates, as many itineraries and leave forms do, turn on Count both start and end dates, which adds one day.

Can the start date be later than the end date?

Yes. The calculator then returns a negative span. If the inclusive option is on with reversed dates, it subtracts one day instead of adding one, so the count stays consistent in either direction.

How are total weeks calculated?

Total weeks is the total day count divided by 7, shown with two decimals. A 30-day span shows 4.29 weeks. The years, months and days line is a separate calendar breakdown, not derived from weeks.

Onde minha entrada é processada?

Esta operação processa sua fonte no seu navegador. Copiar e baixar são ações explícitas; a entrada de origem não é salva em conta nem em histórico.

Quais são os limites de entrada?

Use números finitos, datas válidas e os intervalos mostrados por cada controle. Valores inválidos produzem um erro sem resultado baixável.