Both are correct. however, in different contexts. If you consider, that the day is almost over and nothing more should be done on that particular day you will ask "What did you do?". If its only midday and the person still may do some more things to say, ask "What have you done today?"