What to Wear for Common Dress Codes
Use the invitation’s dress code, venue and time as your starting point.
If one detail conflicts with the others, ask the host what people usually wear.

Step by step
Business casual
Try neat trousers with a collared shirt, knit top, or simple blouse and shoes suitable for the venue. An office’s version of business casual may be stricter than an informal team lunch.
Cocktail or semi-formal
Consider a dressy outfit such as a suit or a cocktail dress. Give yourself options for the weather and how much time you will spend standing.
Black tie
Use black-tie examples from the etiquette reference, then check whether the invitation specifies a theme or variation. Borrowing or renting can make sense for a garment you seldom wear.
Official instructions and references · Emily Post Institute