AUGUSTA — The deadline for Mainers to switch party registrations in time to vote in the June 12 primary elections is drawing near.

Election officials say the deadline is Friday to unenroll from one party and join another in order to vote in the Republican or Democratic primaries.

However, voters who are unenrolled and want to vote in the party primary can enroll as a Democrat or Republican at any time, including on Election Day.

While party enrollment is needed to vote in primary contests on June 12, there is no need to register with a party to vote on a referendum question, or in local elections.

Ranked choice voting will be used for the first time in the Maine Democratic Party primary. The Maine Republican Party is suing in federal court to be exempted from using the new voting system.