When did King Frederick II of Prussia die?

King Frederick II of Prussia died on August 17, 1786 at the age of 74.