1.Sam said, "I didn't have time to do my homework yesterday."
Sam said that I didn't have time to do my homework the day before.
Sam said that he hadn't had time to do his homework the day before.
Sam said that he hasn't have time to do his homework the previous day.