harvesting spinach seeds

my garden is in Riverdale, Toronto; my spinach plants have now spiked into flowers/seeds. The plants are between 6 and 24 inches tall. When is the best time to harvest these seeds? When harvesting, do I pull the whole plant…