def isBefore(dateA, dateB):
    """returns true if date a is before date b or if a and b are the same day"""
    if dateA[0] < dateB[0]: #year
        return True
    elif dateA[0] > dateB[0]:
        return False
    elif dateA[1] < dateB[1]: #month
        return True
    elif dateA[1] > dateB[1]:
        return False
    elif dateA[2] <= dateB[2]: #day
        return True
    return False