How long does a carved or uncarved pumpkin last?

How long does a carved or uncarved pumpkin last?

https://www.homesandgardens.com/gardens/how-long-does-a-carved-or-uncarved-pumpkin-last/