Original: New York served as the capital of the United States from 1785 until 1790.
Simplified: New York was the capital of the United States from 1789 until 1800.