Your Sims will automatically wear formal wear at wedding and pre wedding partys. For family gathering, there's also an alternate version available where they'll choose party wear. Bach parties remain untouched as they are already set to the appropriate party wear.