The Continental Congress actually voted in favor of independence on July 2nd. It was the final wording of the declaration that was approved on July 4th.