The days when all travelers put on their Sunday best to fly on a commercial plane are long gone.

But even if the flight crew doesn’t ask you to deplane based on what you wear, airline experts say your clothes will determine how you are treated in the cabin.

Airline representatives say flight attendants and the pilot have the final say in what is “appropriate” dress for a flight.

A survey of more than 2,000 fliers by the travel review site Airfarewatchdog.com found that 59 percent of air travelers believe airlines have the right to kick a passenger off a plane for not dressing appropriately, with 34 percent disagreeing and 7 percent having no opinion.

In May, a burlesque dancer who goes by the name Maggie McMuffin said she was evicted from a JetBlue Airways plane preparing for a Boston-to-Seattle flight because she was wearing extra-small striped shorts.

And she is not the first to clash with a flight crew over clothes. Green Day guitarist and vocalist Billie Joe Armstrong was removed from a Southwest Airlines flight in 2011 after he refused to pull up his sagging pants.

George Hobica, founder of Airfarewatchdog, said travelers shouldn’t be surprised that the flight crew treats passengers differently based on how they dress. After all, he said, some flight attendants and pilots grew up in conservative parts of the country, where short shorts are frowned upon.

“Some airline people resent how decorum has been thrown out the window,” he said.