It's best when baked within 12-18 hours of preparation but an uncooked egg casserole can stay in the refrigerator for up to 2 days.