Works off of String representations of YearMonth (ISO default: "2024-11"). When formats are provided, each format is attempted in-order until one succeeds.