Dates & Calendars

What Day of the Year Is It? Day Number Calendar and Calculator

Find the day number (1 to 366) of any date, how many days are left in the year and the ISO week. Includes a day-of-year table for every month and leap years.

What Day of the Year Is It? Day Number Calendar and Calculator

Photo: Darkmoon_Art / Pixabay

In this article
  1. Day of the Year Calculator: Find Any Date's Day Number
  2. How to Find the Day Number for Any Date (Manual Calculation)
  3. Understanding Common and Leap Years: Why "out of 365" Matters
  4. Useful Day Numbers and Their Significance
  5. Ordinal Dates and "Julian Dates": What Are They?
  6. Day Number and ISO Week Number: Key Differences
  7. How Much of the Year Is Left? Days Remaining Calculator
  8. Counting Down by Day Number
  9. Who Benefits from Day Numbers?
  10. Who Might Not Need Day Numbers?
  11. Calculating the Day Number in a Spreadsheet
  12. Calculating it in Code (Programming Languages)
  13. Frequently asked questions
  14. Sources

The day of the year, also called the day number or ordinal date, counts the days from 1 January as day 1. Use the calculator below to find the day number for any specific date, including today, or refer to our tables and methods to calculate it yourself. This number helps you track progress through the year, plan logistics, or decode production dates.

Day of the Year Calculator: Find Any Date’s Day Number

This calculator shows you the day number for any date you choose. It automatically opens on today’s date, giving you an instant answer to “What day of the year is it today?”. You can also pick any other date to look up its day number, see how many days remain in the year, and view its ISO week number.

Loading the calculator…

For example, if you want to know “what day is December 1st this year,” simply select December 1st in the calculator. It will show you the exact day number, accounting for whether the current year is a common year or a leap year.

How to Find the Day Number for Any Date (Manual Calculation)

You can quickly find the day number for any specific date using a simple sum. Take the day number for the first of the month from the table below. Then, add the day of the month minus one. This method works for both common years and leap years, provided you use the correct column.

What Day of the Year Is It? Day Number Calendar and Calculator: A tablet displaying a calendar, a keyboard, and a computer mo

Day Numbers for the First of Each Month (Common vs. Leap Year)

Month Day number of the 1st (common year) Day number of the 1st (leap year)
January 1 1
February 32 32
March 60 61
April 91 92
May 121 122
June 152 153
July 182 183
August 213 214
September 244 245
October 274 275
November 305 306
December 335 336

The two columns differ from March onwards because a leap year adds 29 February, which is day 60. This shifts all subsequent day numbers by one. We explain whether a year is a leap year in our list of leap years.

Worked Example: Finding the Day Number for December 1st

Let’s find the day number for 1 December.

  • Look at the table for December. The 1st of December is day 335 in a common year and day 336 in a leap year.
  • Since 1 December is the first day of the month, you add (1 – 1) = 0 to this number.
  • Therefore, 1 December is day 335 in a common year and day 336 in a leap year.

Worked Example: Finding the Day Number for October 18th

To find 18 October in a common year:

  • Find October in the table. The 1st of October is day 274 in a common year.
  • Add the day of the month minus one: 18 – 1 = 17.
  • Calculate: 274 + 17 = 291.
  • So, 18 October in a common year is day 291.

For 18 October in a leap year:

  • Find October in the table. The 1st of October is day 275 in a leap year.
  • Add the day of the month minus one: 18 – 1 = 17.
  • Calculate: 275 + 17 = 292.
  • So, 18 October in a leap year is day 292.

Understanding Common and Leap Years: Why “out of 365” Matters

When people ask “what day of the year is it out of 365,” they refer to the total number of days in a common year. A common year has 365 days. However, a leap year has 366 days, with an extra day (February 29th) added to keep our calendar aligned with the Earth’s orbit around the Sun. This extra day affects all subsequent day numbers from March 1st onwards.

  • Common Year: 365 days. December 31st is day 365.
  • Leap Year: 366 days. December 31st is day 366.

The calculator and table both account for leap years, ensuring you get the correct day number regardless of the year.

Useful Day Numbers and Their Significance

Certain day numbers hold particular importance or are commonly referenced:

  • Day 1: 1 January. This is the official start of the year for counting purposes.
  • Day 100: This is 10 April in a common year, or 9 April in a leap year. Many American schools celebrate the 100th day of the school year (counted from the first day of school) with counting activities and special events.
  • Day 183: This is 2 July in a common year. It marks the middle of the year: 182 days come before it and 182 days come after it. In a leap year, the middle of the year falls between Day 183 (July 1st) and Day 184 (July 2nd), with 183 days before and 183 days after.
  • Day 256: This is 13 September (12 September in a leap year). 256 is 28, which is the number of values in a byte. For this reason, people celebrate this day as Programmers’ Day. In Russia, it has been an official professional holiday since 2009.
  • Day 365 or 366: 31 December. This is the last day of the year.

Ordinal Dates and “Julian Dates”: What Are They?

The international date standard ISO 8601 defines an ordinal date format. It presents the year followed by the day number, such as 2026-291 for 18 October 2026. This format is compact, unambiguous, and sorts correctly, making it popular in computing, data management, and logistics.

An open diary showing January and February 2019 calendars.

In manufacturing, people often call the same idea a “Julian date”. For example, a food can stamped 26291 was probably packed on day 291 of 2026. This name is confusing, because astronomers use Julian Day for something quite different. They use it as a continuous count of days since 1 January 4713 BC. This makes calculations across calendars easy. On that scale, noon on 18 October 2026 is Julian Day 2,461,332. Neither use has anything to do with the Julian calendar of Julius Caesar, which the Gregorian calendar replaced.

When you encounter a “Julian date” on packaging or in industrial contexts, almost always assume it refers to the year and day number (ordinal date) rather than the astronomical Julian Day count.

Day Number and ISO Week Number: Key Differences

Day numbers and week numbers answer different questions and follow different counting systems.

  • Day number: Counts days sequentially from 1 January (day 1) to 31 December (day 365 or 366).
  • ISO week number: Counts Monday-to-Sunday weeks. Week 1 is the week that contains the first Thursday of the year.
A 2020 calendar displayed on a tablet screen.

Because of the ISO week definition, the first few days of January can belong to the last week of the previous year. Also, some years have a week 53. Our guide to how many weeks are in a year explains why.

The calculator at the top of this page provides both the day number and the ISO week number for any selected date, giving you a complete picture.

How Much of the Year Is Left? Days Remaining Calculator

Day numbers make calculating “how far through the year are we?” or “how many days are left?” a straightforward task. The calculator above does this for any date you choose.

To calculate it manually:

  1. Find the day number for your current date.
  2. Determine the total number of days in the current year (365 for a common year, 366 for a leap year).
  3. Subtract the current day number from the total days in the year. This gives you the number of days *after* today.
  4. If you want to count “today” as part of the days passed, then the number of days fully passed is (Day Number – 1).
An hourglass with sand running through it, symbolizing the passage of time.

Worked Example: Days Remaining from October 18th

Let’s say it is 18 October in a common year (day 291).

  • Total days in a common year: 365.
  • Current day number: 291.
  • Days remaining *after* today: 365 – 291 = 74 days.
  • Percentage of year passed: (291 / 365) * 100% = 79.7%.

For the days between any two dates, such as the days until a deadline or a holiday, use the days between dates calculator. For a countdown to your own birthday, try the birthday countdown.

Counting Down by Day Number

Day numbers also make countdowns easy within a single year. You just subtract the current day number from the target day number.

Two hands with fingers spread, showing ten digits for counting.

Worked Example: Days to Christmas from October 18th

Christmas Day (25 December) is day 359 in a common year (360 in a leap year). If it is 18 October (day 291 in a common year):

  • Target day number: 359.
  • Current day number: 291.
  • Days to Christmas: 359 – 291 = 68 days.

New Year’s Eve is day 365 (or 366 in a leap year). The summer solstice in the northern hemisphere falls on 20 or 21 June. This is day 171 or 172 in a common year, and day 172 or 173 in a leap year.

For dates that cross into the next year, you add the remaining days of this year to the day number in the next year. For example, to count down to 1 February of next year from today, you would calculate (Days Remaining in Current Year) + (Day Number of 1 February Next Year).

Who Benefits from Day Numbers?

Many professionals and industries rely on day numbers for precision and clarity:

  • Logistics and Supply Chain: Companies use day numbers for shipping schedules, inventory tracking, and expiration dates on products.
  • Manufacturing: Production lines often stamp products with day numbers to indicate the manufacturing date, facilitating recalls or quality control.
  • Agriculture: Farmers use day numbers for planting, harvesting, and crop management schedules.
  • Science and Research: Researchers use ordinal dates for consistent data logging and to avoid ambiguity when tracking experiments over time.
  • Military: The military uses day numbers for operational planning and communication, often alongside Zulu time (UTC) for universal coordination.
  • Personal Planning: Individuals use day numbers to track personal goals, project deadlines, or simply to understand how much of the year has passed.

Who Might Not Need Day Numbers?

If your primary need is simply to know the day of the week (e.g., “Is it Tuesday?”), or to plan events solely by month and day without needing a sequential count, then day numbers might be overkill. Most casual scheduling and social interactions do not require this level of specificity. Standard calendar views are usually sufficient for these purposes.

Calculating the Day Number in a Spreadsheet

You can easily calculate the day number in spreadsheet programs like Excel or Google Sheets. If you have a date in cell A1:

=A1 – DATE(YEAR(A1), 1, 0)

This formula works because DATE(YEAR(A1), 1, 0) returns the last day of the previous year. Subtracting this from your date in A1 gives you the sequential day number from January 1st. To show the ISO week number, use =ISOWEEKNUM(A1). Our age formula guide covers more date formulas.

Calculating it in Code (Programming Languages)

Most modern programming languages have built-in functions to retrieve the day number, often referred to as “day of year” or “ordinal day.”

  • Python: date.today().timetuple().tm_yday returns the day number for today’s date.
  • SQL Server: Use DATEPART(dayofyear, @date) where @date is your date variable or column.
  • PostgreSQL: Use EXTRACT(DOY FROM date) where date is your date variable or column.
  • JavaScript: You can calculate it by taking the difference in milliseconds between your date and January 1st of the same year, converting it to days, and adding one. Be careful to compare dates at the same time of day (e.g., midnight UTC) to avoid issues with daylight-saving changes shifting the result by a day. A common pattern is:
    const date = new Date('2024-10-18T00:00:00Z'); // Your target date, set to UTC midnight
    const startOfYear = new Date(Date.UTC(date.getFullYear(), 0, 1)); // January 1st of same year, UTC midnight
    const diff = date - startOfYear; // Difference in milliseconds
    const oneDay = 1000 * 60 * 60 * 24; // Milliseconds in one day
    const dayNumber = Math.floor(diff / oneDay) + 1; // Convert to days and add 1
Two people holding and looking at their smartphones, possibly using an app.

Frequently asked questions

What day of the year is it today?

Open the calculator at the top of this page. It shows today’s day number, the days left in the year and the ISO week. For example, 18 October is day 291 in a common year and day 292 in a leap year.

How do I calculate the day of the year for any date?

From the table above, take the day number of the first of the month. Then add the day of the month minus one. In a spreadsheet, use =A1-DATE(YEAR(A1),1,0).

What is day 100 of the year?

Day 100 is 10 April in a common year and 9 April in a leap year.

What is a Julian date on food packaging?

On food packaging, a “Julian date” usually refers to a production code made of the year and the day number, for example, 26291 for day 291 of 2026. This is different from the astronomical Julian Day count.

Which day is the middle of the year?

Day 183, which is 2 July in a common year. There are 182 days before it and 182 after it. In a leap year, the middle falls between 1 July (day 183) and 2 July (day 184).

Sources

Photo of Yasir Hafeez

Written by

Yasir Hafeez is the founder and editor of ItsAgeCalculator. He builds the calculators, writes and checks the guides and articles, and tests every result against fixed date rules. He also runs OmniMatrics, a site of everyday calculators and converters.

More articles · Editorial policy · Spotted a mistake? Let us know.

Age tools