Britain will vote on its membership of the European Union on June 23, prime minister David Cameron said yesterday as he began the daunting challenge of persuading the country to stay in.