The most common and polite response to being told to have a good day is to reciprocate the wish.
Here are a few options, depending on the context and your relationship with the speaker:
- Thanks. / Thank you. - This is a simple and universally appropriate response.
- Thanks, you too. - This is a friendly and reciprocal response.
- You too! - A shorter, more informal version of the above. It's suitable for casual interactions.
- I am/did, thanks, you too! - If the conversation is happening at the end of the day, then this confirms you had a good day already, and you return the wish.
The best choice depends on the situation, but all of these options are polite and show appreciation for the other person's good wishes.