Deal with empty dates