Question: When did america go to war with france?
Answer: 7 July 1798 – 30 September 1800
1798 to 1800
Natural Questions answer: from 1798 to 1800 (from the Wikipedia article "Quasi-War")