you need to ensure that the date is not null