cpp/chrono/year month day/ok

Checks if this object represents a valid calendar date.

Return value
if this object represents a valid calendar date, that is, the stored year, month, and day values are all valid and the stored day value is within the number of days in the given year and month. Otherwise.