The cake will be best the day it's baked, so I recommend baking, decorating and serving on the same day. You can make the cookie a day beforehand and store it in an airtight container if you're short on time. Once decorated, the cake will last 1-2 days stored in the fridge (the frosting will start to soften the cookie).