Overview
Introduction
This is the reverse of the more common day-of-year lookup: instead of starting from a date and asking which day number it is, you start from a day number and a year and ask which date that is.
It's most useful when a system stores or displays dates as an ordinal day count, and you need to translate that back into a normal calendar date.
What Is Find Date by the Day of the Year?
A day-number-to-date converter that takes a year and a whole number from 1 to 366 and returns the matching calendar date in YYYY-MM-DD format.
It correctly accounts for leap years, so day 60 lands on February 29 in a leap year but March 1 in a common year.
How Find Date by the Day of the Year Works
The tool first checks whether the entered year is a leap year, using the standard divisible-by-4-except-century-years-unless-divisible-by-400 rule, to know whether the year has 365 or 366 valid days.
It then adds (day number minus 1) whole days to January 1 of that year in UTC, and formats the resulting date, or returns an error immediately if the day number exceeds the year's day count.
When To Use Find Date by the Day of the Year
Use it when a log file, dataset, or legacy system labels records with a Julian-style day-of-year number and you need the actual calendar date.
It's also handy for double-checking exactly which date a leap year's day 60 or later falls on, since that shifts by one compared to a common year.
Often used alongside Find Day of the Year and Find Week of the Year.
Features
Advantages
- Validates the day number against the exact number of days in the specified year, catching an out-of-range day 366 in a common year instead of silently rolling it into the next year.
- Uses UTC-based date arithmetic throughout, avoiding local time zone edge cases.
Limitations
- Requires a 4-digit year and a numeric day on two separate lines; it does not parse free-form combined text.
- Only produces a calendar date, not a weekday name, use Find a Specific Day or the weekday finder tools if a day name is also needed.
Examples
Best Practices & Notes
Best Practices
- Confirm the year before trusting a day-366 result, since only leap years can produce a valid date for that day number.
- Enter the year and day number on two separate lines exactly as shown in the placeholder, extra text on either line will cause a validation error.
Developer Notes
Leap-year detection uses the standard rule `(year % 4 === 0 && year % 100 !== 0) || year % 400 === 0` to compute whether the year has 365 or 366 valid days before the day number is range-checked. The date itself is computed as `Date.UTC(year, 0, 1) + (dayOfYear - 1) * 86400000`, entirely in UTC to avoid time zone drift.
Find Date by the Day of the Year Use Cases
- Decoding a Julian-style day-of-year field stored in a log file, database, or legacy data format
- Checking exactly which date a given day number lands on in a leap year versus a common year
- Classroom exercises on leap year rules and calendar arithmetic
Common Mistakes
- Entering day 366 for a year that isn't a leap year, which this tool flags as an error rather than silently returning a January date from the next year.
- Forgetting that the year and day number need to be on separate lines, combining them onto one line fails validation.
Tips
- Use Find Day of the Year to go the other direction and verify a round trip, a date converted to a day number and back should return the original date.
- If you only know a season or rough time of year, Find Day of the Year on a nearby date can help you estimate the day number to try here.