YYYYDDD
YYYYDDD is a calendar date format that encodes the year followed by the day of the year. In this scheme, the year is represented by four digits, and the day of year is a three-digit number from 001 to 365 (or 366 in leap years). The format is also known as an ordinal date and is used in meteorology, aviation, logistics, and data logging to provide a compact, easily sortable representation of dates.
The main advantage of YYYYDDD is that it sorts naturally by date when treated as a numeric
Leap year considerations: DOY values range up to 366 in leap years. When interpreting or generating YYYYDDD
Conversion between YYYYDDD and a Gregorian calendar date can be done by taking the year, determining January
Note that YYYYDDD is distinct from the astronomical Julian Day Number, which counts days from a fixed