Calculadora de Diferença de Datas

Diferença em dias entre duas datas dadas em dias do ano (ex: 45 = 14/fev).
Created by
Renato Passos, Eng. de Software
Reviewed by
Renato Passos, Eng. de Software

Last updated: Apr 18, 2026

Diferença (dias)
364,00

Formula

Δdias = |b − a|

About this calculator

The Date Difference Calculator allows you to determine the number of days between two dates represented as days of the year (from 1 to 365, or 366 in a leap year). Simply enter two positive integers, and the tool calculates the absolute difference between them, providing the result in days. For example, if you enter 45 and 100, the result will be 55 days, which corresponds to the period between February 14 and April 10 in a non-leap year.

This calculator is useful for quickly calculating time intervals in days, without worrying about months or years. It is especially practical for professionals dealing with short deadlines, such as event scheduling, inventory control, or project planning. It can also be used to check the difference between two dates within the same year, as long as both are in the day-of-year format.

When using the tool, remember that it considers the year as having 365 days, ignoring leap years. Therefore, for dates involving February in a leap year (day 60), the calculation may be incorrect if one of the dates is after February 28. Additionally, the calculator does not convert days into months or years; it only returns the difference in days. For larger intervals, consider using a full date difference calculator.

For accurate results, ensure that the numbers entered are within the range of 1 to 365 (or 366 if considering a leap year). If you enter values outside this range, the calculator may not work correctly. The tool is simple and straightforward, ideal for quick everyday calculations.

Frequently asked questions

How do I find the day of the year for a specific date?

You can use a day-of-year table or an online converter that transforms a date into a day number. For example, January 1 is day 1, February 1 is day 32, and so on.

Does this calculator consider leap years?

No, the calculator assumes a 365-day year. For leap years, February 29 corresponds to day 60, but the calculation may be incorrect if one of the dates is after that day.

Can I use numbers greater than 365?

No, the calculator expects values between 1 and 365 (or 366 for leap year). Values outside this range may produce invalid results.

What is the difference between this calculator and a full date calculator?

This calculator uses only day-of-year numbers, ignoring months and years. A full date calculator allows you to input day, month, and year, and computes the difference considering leap years and varying month lengths.

Is the result always positive?

Yes, the calculator returns the absolute difference, so it is always a positive number. The order of the dates does not matter.

Other Tempo calculators