Validation of Date

Learn how to verify whether or not a date is valid.

We'll cover the following

Assume you have a calendar date such as year(2100)/2/29. Your first question may be: Is this date valid?

Check if a date is valid

The various calendar types in C++20 have a function ok. This function returns true if the date is valid.

Get hands-on with 1200+ tech skills courses.