The reply would have to be "I did it yesterday", because a particular time in the past is referred to.and can't I ask?
- Have you done your homework?
- Yes I've done it yesterday.
You could also say simply "Yes, I have", or "Yes, I have; I did it yesterday."
Student or Learner