What is the Day of the Year?
The day of the year (also called the ordinal date or Julian day of the year) is a sequential count of days within a calendar year, starting from January 1 as Day 1 and ending on December 31 as Day 365 (or Day 366 in a leap year). It is used in astronomy, meteorology, aviation, and logistics to simplify date arithmetic.
For example, March 15 is Day 74 in a non-leap year (31 days in January + 28 days in February + 15 days in March = 74) and Day 75 in a leap year. Converting calendar dates to ordinal dates makes it simple to calculate durations: the number of days between two ordinal dates is just their difference.
Ordinal dates are also used in ISO 8601 notation: 2024-075 represents the 75th day of 2024 (March 15, 2024). This compact format is used in data files, log timestamps, and scientific databases.