Number of days the city of Lancaster, Pa., spent as capital of the United States. On September 27, 1777 delegates of the Continental Congress were forced to flee Philadelphia. Delegates met in the county courthouse for several hours, and then moved their capital again, to York, Pa.