Date.parse should return NaN when date is invalid