In what year was the US flag officially established?

In what year was the US flag officially established?
Twitter Google+ Share on Facebook