Skip to content
UniKit

Day of year calculator

Find the day of the year, ISO 8601 week (and the week-owning year), day of month, quarter, leap-year status and remaining days for a date — or resolve the date from "day N of the year".

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Dates or day numbers (one per line)

Accepts YYYY-MM-DD (also with / or . and in Chinese form). To go the other way use "2024 day 120", "2024 d120" or "2024 年第 120 天". Unrecognized lines are reported individually, and a day number beyond the length of the year is flagged.

Result

ISO weeks follow ISO 8601 (Monday-based, week containing January 4th is week 1) and the owning year is shown.

Enter a date or a day number to see the result

Characters: 0 · Output lines: 0 · Converted: 0 · Errors: 0

What this tool does

  • Get the day of the year, ISO 8601 week (with the week-owning year), day of month and quarter of a date.
  • Check leap years, see how many days are left in a year, and line up reporting periods or countdowns.
  • Resolve "day N of YYYY" back into a real date, for example day 120 of 2024 → 2024-04-29.

Example

Input

2024-01-01

Output

2024-01-01 → day 1/366 · ISO 2024-W01 · Monday · Jan 1 · Q1 · leap year · 365 days left

ISO weeks still follow ISO 8601: the week containing January 4th is week 1, so early January can belong to week 52/53 of the previous year.

Frequently asked questions

Why can January 1st be week 52 of the previous year?

ISO 8601 starts weeks on Monday and marks the week containing January 4th as week 1, so the week number can belong to either the previous or the next year. 2023-01-01 was a Sunday and falls in ISO 2022-W52, while 2024-12-31 is Tuesday and falls in ISO 2025-W01. The ISO year in the output is the year that owns the week.

How do I convert a day number back to a date?

Enter "2024 day 120", "2024 d120" or "2024 年第 120 天". If the number exceeds the length of that year (365, or 366 in a leap year) the tool says so instead of guessing.

How are leap years handled and which years are supported?

By the Gregorian rule: divisible by 4 and not by 100, or divisible by 400 (2000 is a leap year, 1900 is not). Gregorian years 1-9999 are supported.

How is this different from the date/time converter?

This tool only computes calendar positions — day of year, ISO week, quarter, leap year, remaining days and the reverse "day N → date" lookup. The date & time converter handles conversions between date-time spellings such as ISO, Chinese format, timestamps and templates.

How are the day of month and quarter derived?

The day of month is simply the day number of the date (2024-05-06 is day 6 of May), and quarters follow calendar quarters: Jan-Mar is Q1, Apr-Jun Q2, Jul-Sep Q3 and Oct-Dec Q4.

Keywords:day of yearISO week numberdate-year

Related tools