Section 594 of the National Defense Authorization Act for Fiscal Year 2009
Just to clarify since we have many veterans including myself that have been out of service since before 2009. During my service it was drilled that when out of uniform you shall not salute when out of uniform, this has been changed. I thought it helpful for our veterans to have this information since I have seen varied levels of courtesy at different functions.
Newest Flag regulations of 2012 also confirm. Wikipidea has incorrectly sourced the data that one may salute when not in uniform during the pledge, see below US flag code of 2012, section 4.
4 USC Sec. 4 01/03/2012 (112-90)
TITLE 4 - FLAG AND SEAL, SEAT OF GOVERNMENT, AND THE STATES
CHAPTER 1 - THE FLAG
Sec. 4. Pledge of allegiance to the flag; manner of delivery
The Pledge of Allegiance to the Flag: "I pledge allegiance to the
Flag of the United States of America, and to the Republic for which
it stands, one Nation under God, indivisible, with liberty and
justice for all.", should be rendered by standing at attention
facing the flag with the right hand over the heart. When not in
uniform men should remove any non-religious headdress with their
right hand and hold it at the left shoulder, the hand being over
the heart. Persons in uniform should remain silent, face the flag,
and render the military salute.
(Added Pub. L. 105-225, Sec. 2(a), Aug. 12, 1998, 112 Stat. 1494;
amended Pub. L. 107-293, Sec. 2(a), Nov. 13, 2002, 116 Stat. 2060.)