Trying to validate if date is a valid date format.