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