Handle empty dates