cpp/chrono/year month weekday/ok

Checks if this object represents a valid date.

Return value
if this object represents a valid date, that is,  is  and there are at least index weekdays in the specified year and month. Otherwise.