get data and time