API/BUG: return np.nan rather than -1 for invalid datetime accessors values (GH8689)