A whole spaghetti squash will keep for about a month if you store it in a cool, dark place.