Surely the dress code remains the same. Long dresses are not always worn anyway, lots of ladies prefer 'cocktail' dresses. I have seen many teenagers dressed in the 'spirit of the evening' and very nice they looked too.
Smart black trousers / skirt dressed up with a colourful top, some bling and scarves i s an option and still looks smart. Just don't go with jeans etc.