I definitely agree with GK. Especially when it comes to long-haul flights. But in any case - why do you need a dress code. What you would sometimes need more is a "wash code". That is when I sit next to someone who smells as it happened on a flight from London to Cincinnati. But clothing is not an issue!!