from datetime import datetime


def parse_line(line):
    """Get the date and information from a log file line"""
    line = line.strip('\n')
    items = line.split(';')
    if items[2] == '(invalid date)':
        date = None
    else:
        date = datetime.strptime(items[2], '%Y-%m-%dT%H:%M:%S.%f%z').date()
    data = items[4]
    return date, data