With the British Surrender at Yorktown, how long approximately did the war continue before it was officially ended by treaty?

With the British Surrender at Yorktown, how long approximately did the war continue before it was officially ended by treaty?
Twitter Google+ Share on Facebook