Anytime that we have wanted to carve our pumpkins during the fall season, we have had to wait until the night before Halloween in order to assure that the pumpkins would last more than a few hours.
Make sure you wash the outside of the pumpkin before carving to get rid of any dirt that could carry microscopic organisms that will begin attacking the pumpkin once it has been cut.