Day of the year calculator

Pick a date to get its day of the year, or type a code like 2026-334 or 26334 to find the calendar date.

Day of year
Day of the year
—
Days left
—
Codes
—

Pick a date or type a code.

Convert a list
InputDateDayYYYY-DDDYYDDD

How it works

How the day number is counted

January 1 is day 1. The tool adds the days of the months before the date, then the day of the month. February has 29 days in leap years: years divisible by 4, except century years not divisible by 400, so 2000 was a leap year and 1900 was not. Leap year rule (US Naval Observatory).

Example: November 30, 2026

January to October add up to 304 days in 2026, so November 30 is day 304 + 30 = 334, with 31 days left in the year. Its codes are 2026-334 (ISO ordinal date), 2026334 and 26334.

“Julian date” codes on products

Some product labels use the YYDDD day-of-year code. The astronomical Julian Day uses a continuous count. 24060 means day 60 of 2024, which is February 29. Some makers use their own variants, so check with the manufacturer if a code does not decode.

Two-digit years

A five-digit code does not say the century. By default, 00 to 68 mean 2000 to 2068 and 69 to 99 mean 1969 to 1999, the same rule as POSIX systems. Change the cutoff in the list converter if your data is older.

Convert a list to CSV

Paste one date (YYYY-MM-DD) or code per line. Each line is converted in both directions; impossible dates such as 2026-02-30 and days beyond 365 or 366 are flagged. Download the result as CSV for a spreadsheet. Use year-first dates. The calculator applies Gregorian rules to years 0001 through 9999, including dates before the calendar was adopted.

What day of the year is it today?

Press “Today”: the tool shows today’s day number and the days left, based on your device’s date.

How do I convert YYDDD to a date?

Type the five digits in the code field. 26334 gives November 30, 2026; 24060 gives February 29, 2024.

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

On some product labels, “Julian date” refers to the day-of-year code. In astronomy, the Julian Day Number counts days continuously.

Days Between Dates · Roman Dates