You can bake cake layers up to 2 days in advance of serving, but it's important to store them covered tightly and not to trim the layers until you are ready to stack them. I like to store cake layers I won't use right away in the actual cake pans I baked them in, then cover the tops tightly, so no crumbs are exposed.