Pick them while they are still firm, but have become slightly lighter in color. Use a knife to cut the stem, which should still be easy to cut through.
If the you are picking green summer squash you can pick it at any time. It will be best to pick it when it is still young and has less seeds. When picking the squash cut the stem above the base of the plant and be careful of any spikes.