assert date is not None