En or pendant; dans la journée
How long it takes, how long it lasted, by the end of the day
With a length of time, English “in” and “for” can each have different meanings. French uses a different word for each meaning. For example: dans une heure “in an hour from now”.
1. "In five minutes from now": dans
Dans counts forward from the moment you speak, as in basic lesson 14. It tells when something will happen.
2. "Done in twenty minutes": en
En gives the time that it takes to reach a result, such as a distance or a finished job, as in basic lesson 14. When the sentence names a distance or a result, use en, not pendant.
3. "She swims for an hour": pendant
Pendant says only how long the action lasts, when there is no result to reach.
4. "Some time this week"
With la before the day or the week, dans does not count from now. It means some time before that day or week is over, not at a set hour. With une, dans counts from now again.