affordable formal gowns

How Strict are the dress codes for men for dinner as far as shorts, jeans, collared shirts and sandals/shoes? affordable formal gowns