Havous.
All tools / Time tools / Day of the year calculator

Day of the year calculator

Pick a date and get its day number, its code and its week. Paste a column of dates or codes and get every one back.

Datespick or paste
Day of the year–
Days left–
Ordinal date–
ISO week–
Each one you pasted–

How to use it

  1. Type a date, or leave it empty for today.
  2. Read the day number, the ordinal code and the ISO week.
  3. Paste several dates or codes, separated by commas, to convert the lot.
  4. Every line in the list comes back with its week number too, so a schedule and a carton code can be checked in the same pass.

July 4, 2026 comes back as day 185 of 365, code 2026185, ISO week 27. Paste 2026001, 2026185 and 2026365 and each one comes back as its own date.

Questions

Is the day of the year the same as the Julian date?

No. The day of the year counts inside one calendar year, from 1 to 366. The astronomical Julian Day is a single running count that started in 4713 BC. Packaging codes use the first meaning.

Why does March 1 change number between years?

February has 29 days in a leap year, so every date from March 1 on sits one day higher. March 1 is day 60 in 2025 and day 61 in 2024.

Which week number does it use?

ISO 8601. Weeks start on Monday and week 1 is the one that holds the first Thursday of January, which is why the last days of December can land in week 1 of the next year.

Can I convert a whole list at once?

Yes. Paste dates or codes separated by commas and every line comes back with its day number, its code and its week.

What people use it for

What the day of the year is

The day of the year is the position of a date inside its own year, counted from 1. January 1 is day 1, February 1 is day 32, and December 31 is day 365, or 366 in a leap year. ISO 8601 writes it as YYYY-DDD, so April 10, 2026 is 2026-100. Every date after February 28 sits one day higher in a leap year, which is where a hand count goes wrong.

It is not the Julian day. The astronomical Julian Day is a continuous count that started in 4713 BC and has nothing to do with the calendar year, even though shipping labels call their three digit code a Julian date.

The code on the box

Food, medicine and hardware cartons carry a short code such as 2026185: four digits for the year and three for the day of the year. Reading one back is not obvious, which is why the second box takes a list of them. Paste a column from a spreadsheet, separated by commas, and every code comes back as a calendar date with its week number.

DateDayCode
2026-01-011 of 3652026001
2026-07-04185 of 3652026185
2026-12-31365 of 3652026365
2024-12-31366 of 3662024366

More time tools