from datetime import datetime


def _parse_release_date(unformatted_date: str) -> datetime:
    """Method to parse the string to retrieve the date

    @param unformatted_date: date that needs to be parsed
    @return: Formatted date
    @raises: ValueError when format is not matched to the ones specified
    """
    for fmt in ("%m/%d/%Y", "%b %d %Y"):
        try:
            return datetime.strptime(unformatted_date, fmt)
        except ValueError:
            continue
    raise ValueError('Time date does not match anything')