Gourd squash will keep for months, Spaghetti squash, butternut squash, etc.
Sliced thin, It cooks quickly, Even after cut open will keep for weeks.
Yellow squash will keep for a week or more, zucchini for a several weeks.
Store in a well ventilated mesh bag in a dry area out of the sun