J.K. Rowling completed the manuscript in **January 2007**.
The book was **published on July 21, 2007** (UK/US/Canada) and July 23, 2007 (some other territories).