Both are fine.
We tend to use 'How did your day go?' when you know there was something significant about the person's day, for example, if it was their first day in a new job. 'How was your day?' is a more general enquiry, but the difference is quite subtle.