Count a date’s one-based position within its Gregorian year.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
UTC midnight for the selected date is subtracted from UTC midnight on 1 January, divided by 86,400,000 milliseconds, and increased by one. Remaining days subtract that ordinal from 365 or 366 under the Gregorian leap rule.
2025-03-15
Date: 2025-03-15 Day of Year: 74 / 365 Days Remaining: 291 Year Progress: 20.27% Leap Year: No
Ordinal-date records encode values such as 2024-060, seasonal datasets index annual observations, and maintenance logs compare milestones without month names.