During which war was the Star Spangled written?

During which war was the Star Spangled written?
Twitter Google+ Share on Facebook