What Is the Day of the Year?
The day of the year (also called the day number or ordinal day) counts the days from 1 January, which is day 1, to 31 December, which is day 365, or 366 in a leap year. For example, 1 February is day 32 and 1 March is day 60 (day 61 in a leap year). Day numbers make it easy to calculate durations, sort and compare dates, and label things compactly.
They're used in many fields: manufacturing and food production print "Julian date" codes such as 25045 (the 45th day of 2025) on packaging, military and aviation logs use ordinal dates, scientists and astronomers use day-of-year and Julian Day Numbers for observations, and programmers use them in file names, databases and data analysis. This calculator converts in every direction.
How to Find the Day Number of a Date
- Choose a date. Today is filled in automatically.
- Read the day number, days remaining and year progress.
- Use "Day number → date" to find which date a day number represents.
- Decode a date code such as 25045 or 2025045 from a product label.
Different Meanings of "Julian Date"
| Term | Example | Meaning |
|---|---|---|
| Ordinal date (ISO 8601) | 2025-045 | Year and day of year |
| YYDDD / "Julian" code | 25045 | Two-digit year + day of year (packaging, military) |
| Julian Day Number (JDN) | 2460721 | Days since 1 January 4713 BC (astronomy) |
| Julian calendar date | – | A date in the older Julian calendar, which is different |
Day Numbers at the Start of Each Month (Non-Leap Year)
January 1 · February 32 · March 60 · April 91 · May 121 · June 152 · July 182 · August 213 · September 244 · October 274 · November 305 · December 335. In leap years, add 1 from March onwards.
Features
- Day of year1–366 with days remaining.
- ISO ordinal dateYYYY-DDD format.
- Julian Day NumberThe astronomical day count.
- YYDDD codesDecode food and manufacturing date codes.
- Reverse lookupDay number to calendar date.
- Month tableFirst and last day number of each month.
Using Day Numbers in Spreadsheets and Code
In Excel or Google Sheets, the day of the year for a date in A1 is =A1-DATE(YEAR(A1),1,0). In Python it's date.timetuple().tm_yday, in JavaScript you can subtract 1 January and divide by 86,400,000 milliseconds, and in SQL many databases offer EXTRACT(DOY FROM date) or DATEPART(dayofyear, date). Day numbers are also handy for plotting seasonal data, because they let you compare the same point in different years on one axis.
Where You'll See Day Numbers
- Food and drink packaging, where production codes like 25045 show the day of manufacture.
- Tyres, whose DOT codes use the week and year of manufacture instead.
- Military and aviation records and NOTAMs.
- Scientific data such as satellite imagery, climate records and tide tables.
- Computer file names and logs that need compact, sortable dates.
Because day numbers restart every year, always pair them with the year to avoid ambiguity, for example 2025-045 rather than just 045.
Tip: the progress bar shows how much of the year has already passed on the chosen date, a handy visual for annual goals, budgets and yearly targets.
All conversions run instantly in your browser.
Frequently Asked Questions
What day number is Christmas?
25 December is day 359 in a common year and day 360 in a leap year.
What is the ordinal date format?
ISO 8601's YYYY-DDD format, for example 2025-045 for 14 February 2025.
Does the day number start at 0 or 1?
At 1: 1 January is day 1. Some programming functions start at 0, so check the documentation when coding.
What day of the year is it today?
The date defaults to today, so the current day number is shown immediately.
What is day 100 of the year?
10 April in a common year, or 9 April in a leap year.
How do I read a Julian date code on food packaging?
The first digits are the year and the last three are the day of the year: 24300 means the 300th day of 2024 (26 October).
How many days are left in the year?
The "Days remaining" result shows how many days are left after the selected date.
What is the Julian Day Number used for?
Astronomers use it to count days continuously without months or years, which simplifies calculating intervals between observations.