What Day of the Year Is It Today?
—
Accuracy note
Uses the proleptic Gregorian calendar and the standard leap-year rule: divisible by 4, except centuries not divisible by 400. Date fields are calendar dates with no time-of-day conversion.
Built-in checks: 2024 day 60 = 2024-02-29; 2025 day 365 = 2025-12-31.
Date to day number
Choose a calendar date to get the day-of-year, ordinal date, compact codes, weekday, days elapsed, and days remaining.
Day number to date
Enter a year and a day-of-year from 1 to 365 or 366. The range updates for leap years.
Advertisement
Julian date code mode
For packaging, manufacturing, logistics, military, and dataset searches, “Julian date” often means an ordinal code, not the astronomical Julian Day Number. Enter 25035, 2025035, or 2025-035 to decode February 4, 2025.
Visual year context
Choose a date or day number to see its position in the year.
—
Selected month
How to calculate day of year
Day-of-year, also called an ordinal date or day number, is the running count of days in a year. January 1 is day 1. December 31 is day 365 in a common year or day 366 in a leap year.
The formula is: day-of-year = days in completed months + day of month. In a Gregorian leap year, add the extra February day for dates after February.
Worked examples
- March 15, 2025: 31 + 28 + 15 = day 74.
- March 1, 2024: 31 + 29 + 1 = day 61.
- Day 60: 2024 day 60 is February 29; 2025 day 60 is March 1.
- Day 256: September 12 in leap years; September 13 in common years.
Julian date vs ordinal date
People often search for “Julian date” when they need a code like 25035, 2025035, or 2025-035. In most manufacturing, food packaging, logistics, military, and dataset contexts, that means an ordinal date. Astronomical Julian Day Number is a separate day count used in astronomy.
Reference tables
Cumulative days before each month
| Month | Common year | Leap year |
|---|
Common day numbers
| DDD | Common year date | Leap year date |
|---|
Developer and spreadsheet formulas
Use these quick formulas when you need day-of-year values for spreadsheets, scripts, SQL queries, filenames, labels, and logs.
=A1-DATE(YEAR(A1),1,0)=A1-DATE(YEAR(A1),1,0)Math.floor((d - new Date(d.getFullYear(),0,0)) / 86400000)date_obj.timetuple().tm_ydayDAYOFYEAR(date_column)date +%j%Y-%jYYYY + DDD, for example 2025035Day-of-year FAQ
What day of the year is today?
The live panel at the top shows today’s day-of-year, total days in the year, days remaining, weekday, ISO ordinal date, and leap-year status. Switch between local browser date and UTC if needed.
How many days are left in the year?
Days left equals total days in the year minus today’s day number. Leap years have 366 days; common years have 365.
What is an ordinal date?
An ordinal date identifies a calendar date by year and day number, such as 2025-035 for the 35th day of 2025.
Is Julian date the same as day-of-year?
Often, yes in everyday business usage. Packaging and logistics codes called “Julian dates” commonly mean day-of-year. Astronomical Julian Day Number is different.
What is YYYY-DDD?
YYYY-DDD is ISO ordinal date format: four-digit year plus a three-digit day-of-year.
How do I convert YYDDD or YYYYDDD?
Use the last three digits as the day-of-year and the first two or four digits as the year. This tool decodes 25035, 2025035, and 2025-035.
Why does day 60 change in leap years?
Leap years include February 29, so day 60 is February 29. In common years, February has 28 days, so day 60 is March 1.
Does the tool use UTC or local time?
The live today panel can use local browser date or UTC. Conversion inputs are plain calendar dates and day numbers, so time zones and daylight saving do not change the entered date.
How do I calculate this in Excel?
If the date is in A1, use =A1-DATE(YEAR(A1),1,0). Format as 000 if you need a three-digit DDD code.
