Separates month and year from a string in the format MM/YYYY.
A string in the format MM/YYYY.
string
monthYearFromString("12/2021"); // { month: "12", year: "2021" }monthYearFromString("2021-12"); // { month: "", year: "" } Copy
monthYearFromString("12/2021"); // { month: "12", year: "2021" }monthYearFromString("2021-12"); // { month: "", year: "" }
Separates month and year from a string in the format MM/YYYY.