Checks if a string is a valid date.
The string to validate.
Options for date validation.
true if the string is a valid date, false otherwise.
true
false
Checks if a string is a valid date.