Apex Conversion

🗓️ Day of Year Reference

The day of year (ordinal date) is the count of days from January 1. Regular years have 365 days; leap years have 366. Use this table to find the ordinal day number for any date.

Month Start Days

First day of each month as day number. Leap years shown separately (February has 29 days).

MonthDays in MonthFirst Day (Regular)Last Day (Regular)First Day (Leap)
January311311
February28 (29 leap)325932
March31609061
April309112092
May31121151122
June30152181153
July31182212183
August31213243214
September30244273245
October31274304275
November30305334306
December31335365336

How to Calculate Day of Year

Formula (Regular Year)

Day of Year = Month Start Day + (Day of Month - 1)

Example: March 15 in a regular year = 60 + (15 - 1) = Day 74.

Leap years (divisible by 4, except century years not divisible by 400): add 1 to the start day for March and later months. Upcoming leap years: 2024, 2028, 2032.

Related Tools