This repository has been archived by the owner on Jul 10, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In this program, isValidDate function uses DateFormatter with the format "yyyy-MM-dd". The property isLenient is set to false to ensure the formatter does not adjust invalid dates to make them valid. For example, February 29, 2019, is an invalid date because 2019 is not a leap year, and this program will correctly output False for this input. Co-authored-by: Ritesh Kokam <61982298+RiteshK-611@users.noreply.github.com>
- Loading branch information