While a cocktail dress code isn’t as strict as white or black tie, it’s not an invitation to wear just anything.
The bride and groom are expecting you to dress up for the occasion and this should be reflected in your outfit. Anything too tight, short, or revealing is a big “no,” as well as jeans, ripped clothing, shorts, and sandals (for men).
Cocktail Attire Etiquette