On 17 July 2010, 23 days after becoming prime minister and after receiving the agreement of the Governor-General Quentin Bryce, Gillard announced the next federal election would be held on 21 August 2010.