def _get_year(obj):
    """
    Get the year of the entry.
    :param obj: year string object
    :return: entry year or none if not valid value
    """
    year = obj[0:4]
    try:
        year = int(year)
    except ValueError:
        year = None
    return year