Date & time

Day of Year Calculator

Find a calendar date’s ordinal day number and the days remaining in its year.

Date conventions explained belowClear start and end values
Date workspace
Date workspace

Check which endpoints and calendar conventions are included.

See the method

Choose your dates and times

Runs on your device

Your time calculation

Your result

Let’s calculate.

Use the Calculate button to see your result.

Review the method below for assumptions and conventions.

How to use this tool

  1. Choose the calendar date you want to locate within its year.
  2. Calculate its ordinal day number, starting with January 1 as day 1.
  3. Read days remaining separately: that count excludes the selected date.

Input reference and sample values

Use the units and choices shown for each field. Sample values are provided for practice, not as recommendations.

InputFormat and unitsSample
Calendar dateUse a calendar date in year-month-day order.2024-03-01

Result for these sample inputs

61 day of year
Days remaining
305
Days in year
366

Select Try the example in the form to load these values and calculate them again. This replaces the current form inputs. Compare the result with the method and worked explanation below.

The method, explained

Count calendar days from January 1 and add one. Days remaining exclude the selected date and end on December 31.

A WORKED EXAMPLE

March 1, 2024 is day 61 because 2024 contains February 29. There are 305 days remaining after that date.

Understanding your result

March 1 is day 60 in a common year and day 61 in a leap year. December 31 is day 365 or 366 and has zero days remaining. An ordinal day number is not the astronomical Julian Date, which uses a different continuous day-count system.

What to keep in mind

Uses the Gregorian calendar and UTC calendar arithmetic. This ordinal day number is not an astronomical Julian Date.

Common questions

Does January 1 count as day zero?

No. January 1 is day 1 and December 31 is day 365 or 366.

Does daylight saving time change the result?

No. Calendar dates are processed without local clock changes.

Methodology maintained by ClarityKit. How these tools are built and checked.