Date.compare now handles null values.