generalized datetime reading