<code>d instanceof Date</code> returns true for an invalid date.