Question: when was the pledge adopted into the flag code
Answer: The Pledge of Allegiance of the United States is an expression of allegiance to the Flag of the United States and the republic of the United States of America , originally composed by Rear Admiral George Balch in 1887 , later revised by Francis Bellamy in 1892 and formally adopted by Congress as the pledge in 1942 .