Did you have a good day? would be the correct version. Note that there should be no space between the last letter of the sentence and the punctuation that follows it: day?
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.