Tools / Day of the Year
Day of the Year
Find which day of the year a date is, from 1 to 365 or 366, and how many days remain after it.
Place in the year
Day 335
30 days remain after this date. The year has 365 days.
How this result is calculated
1 January is day 1. The last day is 365, or 366 when the year is a leap year. Days remaining are the days after the date you enter, not including that date. After 28 February in a leap year, every later date is one number higher than in a common year.
Day of the year numbers 1 January as day 1 and 31 December as day 365, or day 366 in a leap year. The days remaining are the days after the date you enter, not including that date. After 28 February in a leap year, every later date is one number higher than in a common year. 1 March is day 61 in a leap year and day 60 otherwise. That single shift is the usual reason two people disagree about a day number.
The count is the position in the calendar, not the number of midnights that have elapsed, and not the Julian day used in astronomy. Use it for a filename sequence, a progress mark through the year, or a check that a date was interpreted as day-month-year rather than month-day-year. Those two orders produce different day numbers for any date after the 12th. The leap-year tool on this site uses the same Gregorian rule if you want to confirm the year before you trust the day number.
Read the day number as the position of that date, and the remainder as how much of the year is left after it. Day 1 is 1 January, not a zeroth day. In a leap year, a date in March or later is one higher than the same date in a common year. If you are comparing two years, check the leap-year result before you subtract the day numbers. The remainder does not include the date you typed. Tomorrow is the first of the remaining days.
Day of the Year is the page to open when the search is “day of the year.” The date tools count the civil calendar. They do not shift a date because of a time zone, and they do not remove public holidays. Monday-to-Friday tools say so in the result. Leap years follow the Gregorian rule used by spreadsheets: divisible by 4, and a century only when it is also divisible by 400. If you are near midnight and you are not sure which civil date a city has reached, open that city’s time page first, then come back and type the date you found. The calculator will not guess it for you.
Questions
Is 1 January day 0 or day 1?
Day 1. The count is the calendar position, not the number of days already elapsed.
Does a leap day change the day number?
Yes, for every date after 28 February in a leap year. 1 March is day 61 in a leap year and day 60 in a common year.