Question: when are you supposed to take down the american flag?
Answer: You don't have to. While the flag code notes that displaying the flag only from sunrise to sunset is "universal custom," it makes an exception. "However, when a patriotic effect is desired, the flag may be displayed 24 hours a day if properly illuminated during the hours of darkness."