change datetime to time.