Day of the Year Calculator

Convert a date to its day number, or a day number back to a date. See the day of the year (1 to 366), days left, the ordinal date in YYYY-DDD form and the Julian day number. It is leap-year aware, opens on today and runs in your browser.

Convert

Any date from year 1 to 9999.

Result

Day of the year
Day 1
of 365
Days left in the year
364
after 1 Jan 2026
Ordinal date (ISO 8601)
2026-001
YYYY-DDD
Julian day number
2461042
whole days since 1 Jan 4713 BC

Thursday, 1 Jan 2026: day 1 of 365. Dates use the Gregorian calendar, applied backwards before it was adopted. Check your contract and local rules before using day counts for leave, notice periods or deadlines.

How to use the day of the year calculator

  1. Choose date to day number, or day number to date.
  2. Pick a date, or enter a year and a day number. A pasted ordinal date such as 2026-336 fills both.
  3. Read the day number or date, the days left, the ordinal date and the Julian day number.

Worked example

2 December 2026 is day 336 of 365, so 29 days remain and the ordinal date is 2026-336. In a leap year such as 2028, 2 December is day 337, because 29 February adds a day to every date after it.

Related tools

See how far through the year you are with the year progress bar, find the ISO week of any date with the week number calculator, or find the weekday with the day of the week calculator.

See also

Frequently Asked Questions (FAQ)

What day of the year is it today?

The calculator opens on today’s date, so the day number shows straight away. It counts 1 January as day 1 and runs to day 365, or 366 in a leap year.

How do I convert a day number to a date?

Switch to day number to date, enter the year and the day number, and the calendar date appears. Day 60 is 1 March in a normal year and 29 February in a leap year.

What is an ordinal date?

It is the ISO 8601 format YYYY-DDD, a four-digit year and a three-digit day number. For example, 2026-336 is 2 December 2026. You can type an ordinal date into the day number box.

How does a leap year change the day number?

In a leap year, 29 February is day 60, so every date from 1 March onward is one day higher than in a normal year. A year is a leap year if it divides by 4, except century years that do not divide by 400.

What is the difference between a Julian date and a Julian day number?

People use "Julian date" for two things. In industry and the military it often means the day of the year, such as 336. In astronomy the Julian day number counts whole days since 1 January 4713 BC. The calculator shows both.

Is the Julian day number the same as the Julian calendar?

No. The Julian calendar is an old calendar replaced by the Gregorian one. The Julian day number is a continuous day count. This calculator applies the Gregorian calendar to every date.

How many days are left in the year?

The result shows the days remaining after the chosen date until 31 December, so 31 December itself has 0 days left.

Can I use it for leave, deadlines or contracts?

It converts dates and day numbers only. How days are counted for leave, notice periods or deadlines depends on your contract and local rules, so check them before relying on a date.