Date & Time Tools
Day of Year Calculator
Find the day of the year for any date, convert a day number back to a date, and see days remaining and the YYDDD Julian date. No upload.
Day of year (ordinal date) calculator
Today is
Day 173 of 2026
Monday, June 22, 2026, the 173rd day of the year
Day of year
173 of 365
2026-173
Days remaining
192 days
until Dec 31, 2026
Year elapsed
47.4%
52.6% to go
Common year
365 days
YYDDD 26173
Calculation mode
Convert a calendar date to its day of the year, or turn a day number back into a calendar date.
Pick a date or type it as YYYY-MM-DD. All math runs in UTC so the day number never shifts because of your local timezone.
Long form
Monday, June 22, 2026
Year length
365 days (common year)
ISO ordinal date
2026-173
How day-of-year numbering works
January 1 is day 1
The day of year, also called the ordinal date, counts from 1 on January 1. December 31 is day 365 in a common year and day 366 in a leap year.
Leap years add a day
A leap year has 366 days because of February 29. Years divisible by 4 are leap years, except century years, which must also be divisible by 400. So 2000 was a leap year but 1900 was not.
ISO 8601 ordinal dates
ISO 8601 writes an ordinal date as YYYY-DDD, for example 2026-172. The day part is always padded to three digits, so the first of January is 2026-001.
The YYDDD Julian date
Manufacturing date codes, egg cartons, aircraft parts, and mainframe systems often print a five-digit YYDDD or seven-digit YYYYDDD code. This is the ordinal date, not the astronomical Julian Day Number.
The same ordinal numbering is produced by spreadsheet day-of-year formulas, Python timetuple tm_yday, the strftime %j directive, and PostgreSQL doy. For the astronomical Julian Day Number counted from 4713 BCE, use a Julian date calculator instead.
How to use
- Open the calculator and the top panel shows today's day of year, the days remaining this year, the percentage of the year elapsed, and a progress bar.
- Keep Date to day number selected to find the day of the year for any date: pick a date or type YYYY-MM-DD and read the day number, ISO ordinal date, and YYDDD code.
- Switch to Day number to date to go the other way: enter a year and a day number from 1 to 365 or 366 and the matching calendar date and weekday appear.
- Check the days remaining and year elapsed figures to see how far through the year a date falls, useful for deadlines, quotas, and date codes.
- Use the Copy buttons to grab just the day number, the calendar date, or a full summary block, then press Use today to reset both modes to the current date.
About this tool
Day of Year Calculator turns a calendar date into its ordinal day number, the position of that date within its year counting from 1 on January 1. December 31 lands on day 365 in a common year and day 366 in a leap year, and the tool handles the leap-year rule for you, so February 29 only resolves in years that actually have it. Use Date to day number to pick any date and read back its day of year, the number of days remaining until December 31, the percentage of the year that has elapsed, and the ISO 8601 ordinal form written as YYYY-DDD. Use Day number to date to go the other way: type a year and a day number from 1 to 365 or 366 and get the exact calendar date, its weekday, and the long form. The header panel always shows today's day of year, how many days are left in the current year, a progress bar of the year so far, and today's ordinal date, so you can answer what day of the year is it at a glance. The tool also prints the YYDDD and YYYYDDD ordinal date strings that manufacturing date codes, egg cartons, aircraft part stamps, and mainframe systems use, where a five-digit code such as 26172 means the 172nd day of 2026. These ordinal forms are sometimes loosely called a Julian date, which is a different thing from the astronomical Julian Day Number counted continuously from 4713 BCE; this calculator produces the civil day-of-year ordinal, matching spreadsheet day-of-year formulas, the strftime %j directive, Python timetuple tm_yday, and PostgreSQL doy. Every value can be copied, including a full summary block for pasting into a report or a label template. All of the math runs in UTC inside your browser, so the day number never shifts because of your local timezone and nothing you type is uploaded, logged, or stored.
Free to use. Works in your browser. No signup, no login.
Related tools
You may also like
Julian Date Calculator
Bidirectional JD, MJD, RJD, TJD, DJD, and day-of-year converter for any UTC date.
Open tool
Date & TimeISO Week Number Calculator
Convert dates to ISO week numbers, weeks back to dates, and see today's week at a glance.
Open tool
Date & TimeWeek Number Calculator
Current week number plus ISO 8601 and US lookups for any date.
Open tool
Date & TimeDate Difference Calculator
Days, weeks, months, working days, and weekday between any two dates.
Open tool
Date & TimeLeap Year Calculator
Check any year, see the rule, find next and previous leaps, and list leap years in a range.
Open tool
Date & TimeBusiness Days From a Date
Add or subtract working days from a date with custom weekends and a holidays list.
Open tool