In an airtight container, they can last up to a week. You can also place them in a Ziploc bag and freeze them for up to 3 months. If you are going to freeze them, I would recommend not filling them. Make the cake part and then make the buttercream part. Freeze the pies and then freeze the buttercream separately as to not make them mushy when you defrost them.