June 5 is the last day for voters already registered to change or declare a party affiliation.
Only undeclared voters may declare a party and vote on primary election day (September 11). RSA 654:34.
Voters who register subsequent to this date may declare a party when they register. RSA 654:15
You can check your current party affiliation with the following link.