is_valid_date_str function

Returns TRUE if the string is a valid date.