Constructs a YearMonth from a year and month (as enum or integer), a Date, or a YearMonthDay.
auto ym = YearMonth("1999-01"); assert(ym.year == 1999); assert(ym.month == 1);
Constructs a YearMonth from a year and month (as enum or integer), a Date, or a YearMonthDay.