If the pumpkin bars are frosted with cream cheese icing, they should be refrigerated for up to four days.