If you serve a dish that contains hard-boiled eggs at a party, such as deviled eggs, place your serving platter on ice to keep the eggs cold during service. Set a timer to remind yourself to refrigerate the leftovers within two hours. If your eggs sit out longer than they should, play it safe and throw them out.