EditSafely

Find the Day of the Year

Find the ordinal day number (1-366) within the year for each calendar date. Runs entirely in your browser, so your data never leaves your device.

0 chars · 0 lines

Output

The result appears here as you type.

How to use Find the Day of the Year

  1. 1. Paste your dates. Paste one calendar date per line into the input pane, such as 2026-07-14. Each date is counted from January 1st of its own year independently.
  2. 2. Read the ordinal day. The tool counts how many days have elapsed since the start of that date's year, correctly accounting for leap years when February has 29 days.
  3. 3. Copy the results. Copy the list of day numbers from the output pane. Each line matches the date in the same position from your input.

When to use Find the Day of the Year

Find the Day of the Year gives the ordinal day number, from 1 to 366, for any calendar date within its own year. It is the counterpart to converting a day number back to a date, useful whenever a system tracks dates as a running day count instead.

  • Stamping a manufacturing batch. A factory wants to print a Julian day number on a product label, and converting today's date gives the exact number to stamp on the batch.
  • Populating a data field. A data pipeline expects a day-of-year column alongside a date column, and running a batch of dates through this tool fills in the missing values.
  • Checking a fiscal reference. A finance report references day 195 of the year, and you want to confirm which calendar date that phrase actually points to for the current year.
  • Comparing seasonal patterns. A researcher comparing events across different years by their position in the year converts each date to a day number so the years line up on the same scale.

Examples

Mid-July

Input

2026-07-14

Output

195

New Year and New Year's Eve

Input

2024-01-01
2024-12-31

Output

1
366

About the Find the Day of the Year tool

Find the Day of the Year does its work locally, right in the browser. Find the ordinal day number (1-366) within the year for each calendar date. There is no upload step, no queue and no account, and your data never travels over the network.

It belongs to the Time Tools collection on EditSafely, a set of 90 small, focused Time utilities that share the same instant, private workspace.

There is nothing to configure. Provide the input and the result appears on its own. 2 worked examples further down the page show exactly what the tool produces for real inputs.

Running locally also makes the tool fast and dependable: results appear as you type or drop a file, there is no server outage that can take it down mid-task, and confidential data can be processed without a second thought.

Frequently asked questions

Is Find the Day of the Year free to use?

Yes, it is completely free. All 2,658 tools on EditSafely work without an account, a subscription or usage limits.

Is it safe to paste sensitive or confidential data?

Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.

How much text can I process at once?

There is no fixed limit. Because the work happens on your own device rather than on a shared server, the practical ceiling is your machine's memory, which comfortably handles inputs far larger than typical online tools allow.

Do I need to sign up or install anything?

No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.

How do I use the result?

The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.

Related tools

All Time Tools