Formats a day number (days since 1970-01-01) according to the specified format string.
This function only works with date formats that include day components.
Parameters
days: number
Number of days since 1970-01-01 (1970-01-01 = 0, 1970-01-02 = 1, etc.)
format: string
Format string for dates with day components (e.g., "Y-M1-D1", "D2.M2.Y", "Ms D1, Y")
Returns string
Formatted date string containing year, month, and day
Throws
Error if the format string contains only year-month components or is invalid
Formats a day number (days since 1970-01-01) according to the specified format string. This function only works with date formats that include day components.