decode_datetime can only be tested if it is present