Notification
Go to Home All Tools Compare Glossary Blog Contact

Day of the Year Calculator

Find what day of the year it is today, see the live year progress bar, convert dates to day numbers (1–366), and decode Julian packaging date codes (YYDDD).

Quick Presets

Packaging Julian Date Decoder (YYDDD)

Decode 5-digit batch codes found on food, drinks and medicine boxes

Enter a 5-digit code (e.g. 26322) to decode the manufacturing date.
Day of the Year Day 322

of 365 days in 2026 • Wednesday, 18 November 2026

88.2% of 2026 passed 43 days remaining
Year Progress 88.2%
Days Left 43 days
ISO Ordinal 2026-322
Julian Batch Code 26322
Calendar Quarter Q4 (2026)
ISO Week Week 47
Quick Start

How to use the Day of the Year Calculator

The Day of the Year Calculator converts between calendar dates and sequential day numbers (1 through 365 or 366 in leap years):

  • Date to Day #: Pick any date to see its exact ordinal day number, remaining days left in the year, percentage of the year elapsed, and ISO 8601 ordinal date.
  • Day # to Date: Switch to the "Day # to Date" tab to input any day number (1–366) and target year to discover the corresponding calendar date and weekday.
  • Quick Presets: Tap preset buttons for Today, 50% Mid-Year, Day 100, or Programmer's Day (Day 256).
  • Julian Batch Code Decoder: Enter 5-digit manufacturing date codes (YYDDD) into the batch decoder to verify production and packaging dates on consumer goods.
  • Copy & Share: Click "Copy" to save day counts or share links with colleagues and inventory teams.

Looking to find total days between two calendar dates? Use our date calculator. For workweek and ISO week planning, consult our week number calculator.

Calculation Mechanics

How day of the year is calculated

The ordinal day number is calculated by summing the total completed calendar days across all preceding months and adding the day of the current month:

Ordinal Day Number = (Days in Preceding Months) + (Day of Current Month)

1. Day 100 of the Year

Quarter 2

In a common year (365 days): Jan (31) + Feb (28) + Mar (31) = 90 days. Day 100 falls on 10 April (\(90 + 10 = 100\)). In a leap year, it falls on 9 April.

Common Year: 10 April | Leap Year: 9 April

2. 50% Mid-Year Day (Exact Center)

Year Halfway

In a 365-day year, Day 183 represents the exact halfway point, falling on 2 July (182 days before, 182 days after). In a leap year (366 days), noon on 2 July marks exact 50%.

Mid-Year Date = July 2 (Day 183 of 365)

3. Programmer's Day (Day 256)

Binary Milestone

Celebrated on the 256th day of the year (\(2^8\)). In standard years it falls on 13 September; in leap years it falls on 12 September.

Day 256 = 13 September (Common) / 12 September (Leap)

4. Final Day of Year (New Year's Eve)

Year End

December 31 is always Day 365 in common years, and Day 366 in leap years. Remaining days left = 0, marking 100.0% completion.

Dec 31 = Day 365 (100% of Year Completed)
Standards & Formats

ISO 8601 ordinal date format (YYYY-DDD)

The International Organization for Standardization (ISO) specifies ordinal dates in the standard format YYYY-DDD under ISO 8601-1:2019. For example, 1 February 2026 is represented as 2026-032 because February 1st is the 32nd day of the year.

Ordinal dates are heavily utilized in astronomy, aerospace telemetry (NASA / ESA launch sequences), meteorological forecasting, and computational physics because they eliminate variable month boundaries and enable clean linear time series analysis.

Supply Chain Logistics

Julian date codes (YYDDD) for manufacturing, food packaging & logistics

In manufacturing, distribution centers, pharmaceutical packing, and food processing, batch codes and production lots are stamped using a 5-digit format known as a Julian date code (YYDDD):

YY (First 2 Digits) The year of manufacture (e.g., 26 represents 2026).
DDD (Last 3 Digits) The sequential day of the year from 001 to 365 (or 366).
Verification A beverage can stamped 26304 was packaged on the 304th day of 2026, corresponding to 31 October 2026.
Quick Reference

Annual milestone days throughout 2026

A benchmark guide to landmark annual ordinal days, quarterly transitions, and calendar midpoints.

Milestone Event Date Day Number
New Year’s Day 1 Jan 2026 Day 1
100th Day of Year 10 Apr 2026 Day 100
50% Year Midpoint 2 Jul 2026 Day 182
Programmer’s Day (2⁸) 13 Sep 2026 Day 256
Halloween 31 Oct 2026 Day 304
Christmas Day 25 Dec 2026 Day 359
New Year’s Eve 31 Dec 2026 Day 365
Common Questions

Questions, answered

The calculator opens on today's date by default, displaying the current day number of the year, the percentage of the year completed so far, the days remaining until New Year's Eve, and the Julian packaging batch code (YYDDD).

The day of the year (also known as the ordinal day) is calculated by adding the days in all previous months of the current year plus the day of the current month. In a common 365-day year, February has 28 days; in a 366-day leap year, February has 29 days, shifting all subsequent days forward by one.

Manufacturers and warehouses frequently print Julian batch codes in a 5-digit YYDDD format (or 7-digit YYYYDDD). The first two digits represent the year (e.g., 26 for 2026), and the last three digits represent the sequential day of that year (001 to 365/366). For instance, code 26304 indicates the product was manufactured on day 304 of 2026 (October 31, 2026).

In a standard 365-day year, the exact midpoint falls in the middle of Day 183 (July 2). In a 366-day leap year, Day 183 (July 1) marks the exact halfway point, with 183 days before and 183 days after.

Was this tool helpful?

Be the first to rate Day of the Year Calculator

Tap a star to rate instantly

What do you need to work out next?

Search 276+ free tools by name, or pick a category below. Every one runs instantly in your browser — no signup, nothing to install.

More Date & Time tools
AI ADVISOR & COACH

Ask AI Advisor

Ask AI