History of North America

What comes first George troops almost wiped out after winter at Valley Forge or the Declaration of Independence signed?

The Declaration of Independence was signed on July 4, 1776, while the Continental Army under George Washington encamped at Valley Forge during the winter of 1777–78. Therefore, the Declaration of Independence was signed before George Washington's troops endured the hardships at Valley Forge.