Pruning: Hydrandea Macrophylla should be pruned once flowering has finished. Pruning is done for plant vigor and overall shape rather than to control plant size.
Pruning within the first two weeks after flowering will allow time for the stems to grow and harden. Since most cultivars of Hydrangea Macrophylla bloom from the previous year's growth ("old wood"), this will help with flowering the following year. Most authorities use August 1st as the last date for pruning but this must certainly be influence by the area in which you live and the amount of growing season that remains.
Remove all dead or broken stems when pruning the plant. You can reinvigorate mature plants by pruning some of the branches back to ground level. Do not remove more than 1/3 of the branches of any single plant. The pruned plant will normally grow and bloom with a great deal more vigor the following year. Pruning the plant to control size is almost a lost cause with Bigleaf Hydrangea. In most cases, the pruned plant will return to it's previous size rather quickly.
Removing spent blooms is not the same as pruning. 'Deadheading' can be done at any time.