William Henry Harrison, the 9th president of the United States, had the shortest term in office, lasting just one month, from March 4 to April 4 1841.