related_tweet: @ronfilipkowski on june 22, 1942, when the pledge was formally included in the u.s. flag code. the official name of the pledge of allegiance was adopted in 1945. the last change in language came on flag day 1954, when congress passed a law, which added the words under god after one nation.