Question: do phantoms attack during the day?
Answer: Phantoms spawn at night or during a thunderstorm at light level 7 or less. They also must spawn above sea level and they ignore the hostile mob cap when spawning (despite contributing to it).