When was the US flag created?

On June 14, 1777, the Continental Congress passed an act establishing an official flag. Today, the flag has 13 horizontal stripes that represent the colonies and 50 stars that represent the states.