isValidDate(date): boolean
date
boolean
Checks if a given date is valid.
Date
The date to check.
True if the date is valid, false otherwise.