How this instrument works
The "day of the year" — also called an ordinal date — counts a date as a single running number from January 1st (day 1) through December 31st (day 365, or 366 in a leap year), instead of the month-and-day format everyone uses in conversation. It shows up more often than you'd expect in practical settings: manufacturing and food-packaging date codes frequently stamp an ordinal day number (sometimes still loosely called a "Julian date" on packaging, though that term technically means something different in astronomy), and it's the numbering scheme behind the ISO 8601 ordinal-date format YYYY-DDD.
Because February's length changes in a leap year, every ordinal day number from March 1st onward shifts by one between a common year and a leap year — March 1st is day 60 in a non-leap year (31 days in January + 28 in February + 1) but day 61 in a leap year (31 + 29 + 1), even though it's the identical calendar date in both cases. This calculator computes the number directly from the date you enter, so that shift is handled automatically rather than something you need to track by hand.
It also reports the year's leap-year status directly and how many days remain until December 31st, which is just the year's total day count (365 or 366) minus the day number — useful for anything counting down within a calendar year, from a fiscal year-end to a New Year's resolution deadline.
- Enter a date (defaults to today).
- Read the day number of the year.
- Read the days remaining in the year.
- Check whether that year is flagged as a leap year — it shifts every ordinal number after February 28th by one.
Worked example — March 1st in a leap year vs. a common year
March 1st, 2026 (not a leap year): January (31 days) + February (28 days) + 1 = day 60 of the year, with 305 days remaining (365 − 60).
March 1st, 2024 (a leap year): January (31 days) + February (29 days) + 1 = day 61 instead — one day later in the running count, even though it's the same calendar date — with the same 305 days remaining, since the extra leap day at the front of the year is exactly offset by the extra day in the year's total length (366 − 61 = 305).
Questions
What's the difference between an ordinal date and a Julian day number?
They're often confused because manufacturing labels frequently call an ordinal date a "Julian date," but the two are technically different systems. An ordinal date (what this calculator computes) resets to 1 every January 1st and runs to 365 or 366. A true astronomical Julian day number is a single continuously increasing count of days since a fixed reference point thousands of years ago, used in astronomy, and never resets.
Why do food and manufacturing labels use ordinal date codes?
A three-digit ordinal number (like 060 for March 1st) is more compact than a full month-day-year date on small packaging, and it's straightforward for automated production-line equipment to stamp and for warehouse systems to parse and sort by, especially for tracking shelf life or rotating stock on a first-in-first-out basis.
Does a leap day change the ordinal number for dates before February 29th?
No — January and the first 28 days of February carry the identical ordinal numbers (1 through 59) whether or not that year is a leap year, since the leap day itself falls on February 29th. The shift only appears from March 1st onward, where every date in a leap year is numbered one higher than the same calendar date in a common year.
Is December 31st always day 365?
Only in a common (non-leap) year. In a leap year, December 31st is day 366, since the extra leap day earlier in the year pushes every subsequent date's ordinal number up by one, all the way through the year's end.
How do I convert an ordinal date number back into a calendar date?
Work forward from January 1st, subtracting each month's length (accounting for a leap year's 29-day February) from the ordinal number until what's left fits within a single month — that remainder is the day of the month, and the month you stopped subtracting at is the answer. This calculator itself works in the reverse direction, from calendar date to ordinal number, but the same month-length table drives both directions.