Mark invalid dates as such.