The prime minister's spokesman said: "The President of the United States will visit the UK on 13 July". Cook, who has always chosen the calm route towards the recent flare in US trade tensions with China, held private talks with Trump in the Oval Office.
Donald Trump's working visit falls on a Friday, making it a very inauspicious day indeed for some.
At the time, Mr Trump told reporters he would like to visit Ireland soon saying he has a property there that he may never get to see again.
Several news outlets reported that the visit was going ahead before White House spokeswoman Sarah Sanders confirmed the visit this afternoon.
The president said in January that he had "cancelled" a visit to London to formally open the new USA embassy because he thought the building was "a bad deal".
Trump had said he pulled out because of cost overruns on the new mission.
"Since moving into the White House, Mr Trump has shown an impatience bordering on intolerance toward peaceful protests, the media and even the democratic process itself".
Trump and May had said at their last meeting, at the World Economic Forum in Davos, Switzerland, in January, that the visit would occur soon.
President Trump and Theresa May during the North Atlantic Treaty Organisation (NATO) summit in Brussels last May.
Labour leader Jeremy Corbyn has said he would join demonstrations against the President's presence in the United Kingdom, while the London Mayor Sadiq Khan has warned him to expect loud and peaceful protests.
MGM Resorts International (NYSE:MGM) Upgraded to "Buy" by ValuEngine
Finally, Telsey Advisory Group started coverage on MGM Resorts International in a report on Wednesday , March 14th. The investment professionals in our database now own: 9.14 million shares, up from 8.92 million shares in 2017Q3.
Trump had tweeted before the meeting that they would be "talking about many things, including how the US has been treated unfairly for many years, by many countries, on trade".
By contrast to his previous promises of an unwelcoming London, today Mayor Khan took to Twitter to call the city "open", and apparently without irony in an age of advancing censorship said that Londoners treasured freedom of speech.
Events to protest against the visit are already being planned.
Interest in Mr Trump's plans has been fuelled by this week's high-profile state visit to the U.S. of Emmanuel Macron, which some commentators have framed as a bid by the French president to make Paris Washington's first port of call in Europe following Brexit.
The expectation of demonstrations is also believed to have played a part in the postponement of a state visit mooted for 2017.
The state trip - which would involve lavish ceremonies and a stay with the queen at Buckingham Palace - has been put off indefinitely, though Number 10 insists the invitation stands.
The visit had been repeatedly delayed amid a series of diplomatic spats and fears that it could be overshadowed by opponents' pledges to swamp the streets of London to decry Trump.
In 2015, in response to Trump's claim that some areas of London have become so radicalized that police fear for their lives, then-mayor of the British capital Johnson said: "The only reason I wouldn't visit some parts of NY is the real risk of meeting Donald Trump".
Trump, whose mother was born on the Isle of Lewis, made frequent visits to Scotland before becoming president.
Although when the visit by President Trump first appeared to have been called off Khan welcomed the news, he now seems to have moderated his tone somewhat.