General election 2017: Can parties select candidates in time?
Britain's political parties are in a race against time to get candidates in place for the snap election. They had been working on the assumption that there would not be an election until May 2020, but now have just three weeks to put names forward.
Any British, Irish or eligible Commonwealth citizen over the age of 18 - who meets the qualification criteria - can stand, provided they can scrape together a £500 deposit. The deadline for submitting an application is Thursday 11 May.
Here is how the parties' efforts are going:
Labour has said all of its 229 MPs will be automatically re-selected - they had until 17:00 BST on Thursday, April 20, to say whether they wanted to stand again or not.
Only 12 of them have opted to stand down, including former home secretary Alan Johnson.
The party will advertise these vacancies on its website, but the deadline for applications is Sunday, 23 April.
All Labour candidates in England will be selected by members of the party's ruling National Executive Committee and regional board members.
Local Labour Party branches, who normally get to choose candidates, will not get a say "due to the exceptional snap general election circumstances".
The party says this will not set any precedent for future elections - but it removes the prospect of MPs being deselected by ballots of local party members.
Labour in Scotland and Wales will shortly announce their own selection plans.
The Conservative Party has also changed its normal selection procedures and is short-listing candidates for target seats without inviting applications.
"Inevitably it has to be a somewhat shorter process than we usually use," says a leaked letter to would-be Tory candidates published by Conservative Home.
The party's 330 MPs will be re-selected, unless they have decided to stand down. Four of them have done that so far.
In target seats and those where MPs are standing down, local party members will get to choose from a shortlist of three candidates drawn up by the party's central office, according to Conservative Home.
In non-target seats, candidates will be appointed by central office after consultation with local party officials.
The Scottish National Party
All 54 of the SNP's existing MPs are expected to stand again.
Two MPs - Michelle Thompson and Natalie McGarry- have been suspended by the party since 2015.
The party's National Executive Committee met on Saturday and decided not to allow them to be SNP candidates this time.
There are three other seats in Scotland not held by the SNP, where candidates need to be selected.
The Liberal Democrats
The party selected 326 candidates last year and a further 70 or so before the snap election was announced.
It advertised for the remaining vacancies and is hoping to have candidates in all 650 seats by early next week.
All candidates are selected by local parties, in line with national party guidelines on gender balance and ethnic diversity.
Regional party boards are also expected to consider LGBT (gay, lesbian, bisexual, transgender) candidates for winnable seats.
One Lib Dem MP, John Pugh, is standing down. Party members in his Southport constituency will select a candidate from an all-women shortlist.
UK Independence Party
A UKIP spokesman told the BBC: "Since the announcement of the snap election, we have been rapidly gearing up for the campaign and we are confident we have the resources in place to fight it.
"Our candidate selection process will begin shortly, with candidates being adopted over the course of the next week, and we will be fielding candidates nationwide."
The Green Party of England and Wales
The Greens stood in over 90% of seats in England and Wales last time, a party spokeswoman said.
She said local parties were currently selecting candidates but added: "A number are also in negotiations about potentially pulling their candidates if any electoral alliances are arranged."
The party, which currently has three MPs, is selecting its candidates next week - the choice is made by local party members. It aims to stand in all 40 seats being contested in Wales.
Northern Ireland parties
With talks still going on at Stormont about restoring devolved government, none of the parties is thought to have selected candidates yet for the general election.