Check if a string matches the YYYY-MM-DD calendar format
Constraints
Example
>>> is_valid_date('2023-12-31')
True
>>> is_valid_date('2023-02-29')
False
>>> is_valid_date('20-01-01')
False
>>> is_valid_date('2020-02-29')
True
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints