John Quincy Adams was the first President to wear long trousers to his Inauguration Ceremony, on March 4, 1825.
The previous presidents all wore knee breeches and hose.
John Quincy Adams